summaryrefslogtreecommitdiff
path: root/src/corelib/x11/fpg_x11.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-28 14:29:07 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-07-28 14:29:07 +0200
commiteed58d40b0d5f8bf048d489ec35bb6a2b244b55e (patch)
tree21c1602ed4be27cb6d747a9b24966fb2ffb12d86 /src/corelib/x11/fpg_x11.pas
parentd298a7d4701f606813ac9c1b87e77df4a0d044a6 (diff)
downloadfpGUI-eed58d40b0d5f8bf048d489ec35bb6a2b244b55e.tar.xz
Changed IFDEF around users unit in uses clause.
It seems FPC only supports users.pp unit in Linux. Making this changes allows use to compile fpGUI under OpenSolaris too!
Diffstat (limited to 'src/corelib/x11/fpg_x11.pas')
-rw-r--r--src/corelib/x11/fpg_x11.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index f36b0db4..264038f7 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -391,8 +391,8 @@ implementation
uses
baseunix,
- {$IFNDEF DARWIN}
- users, { For unix user and group name support. Mac+X11 doesn't like this }
+ {$IFDEF LINUX}
+ users, { For Linux user and group name support. FPC only supports this in Linux. }
{$ENDIF}
fpg_main,
fpg_widget,
@@ -3276,7 +3276,7 @@ begin
// Especially if files are transfered on removable media the host system
// might not have those user or group ids. So name lookups will fail. This
// simply returns the ID's in such cases.
- {$IFNDEF DARWIN}
+ {$IFDEF LINUX}
try
Result.Owner := GetUserName(TUID(info.st_uid));
except
@@ -3288,7 +3288,7 @@ begin
Result.Group := IntToStr(info.st_gid);
end;
{$ELSE}
- // Darwin (Mac-OS) can't seem to use users.pp unit from FPC. A bug in FPC?
+ // Other *nix systems dont' seem to have a users.pp unit in FPC.
Result.Owner := IntToStr(info.st_uid);
Result.Group := IntToStr(info.st_gid);
{$ENDIF}