Index: src/platform/unix/upipeserver.pas
===================================================================
--- src/platform/unix/upipeserver.pas	(revision 9666)
+++ src/platform/unix/upipeserver.pas	(working copy)
@@ -32,7 +32,7 @@
 
 uses
   SimpleIPC, BaseUnix, uPollThread
-{$IF DEFINED(LINUX)}
+{$IF NOT DEFINED(DARWIN)}
   , uXdg
 {$ENDIF}
   ;
@@ -65,7 +65,7 @@
 
 function GetPipeFileName(const FileName: String; Global : Boolean): String;
 begin
-{$IF DEFINED(LINUX)}
+{$IF NOT DEFINED(DARWIN)}
   Result:= IncludeTrailingBackslash(GetUserRuntimeDir) + FileName;
 {$ELSE}
   Result:= GetTempDir(Global) + ApplicationName + '-' + IntToStr(fpGetUID) + PathDelim + FileName;
@@ -89,7 +89,7 @@
 end;
 
 constructor TPipeServerComm.Create(AOWner: TSimpleIPCServer);
-{$IF NOT DEFINED(LINUX)}
+{$IF DEFINED(DARWIN)}
 var
   Info: TStat;
   Directory: String;
@@ -101,7 +101,7 @@
     FFileName:= FFileName + '-' + IntToStr(fpGetPID);
   if FFileName[1] <> '/' then
     FFileName:= GetPipeFileName(FFileName, Owner.Global);
-{$IF NOT DEFINED(LINUX)}
+{$IF DEFINED(DARWIN)}
   // Verify directory owner
   Directory:= ExtractFileDir(FFileName);
   if not DirectoryExists(Directory) then
