hedgewars/SDLh.pas
changeset 3385 361bd29293f4
parent 3354 cb5d13ff4aae
child 3389 9b97b9240c22
--- a/hedgewars/SDLh.pas	Sat May 01 05:15:16 2010 +0000
+++ b/hedgewars/SDLh.pas	Sat May 01 12:53:55 2010 +0000
@@ -27,13 +27,22 @@
 {$IFDEF FREEBSD}
   {$DEFINE UNIX}
 {$ENDIF}
-// UNIX is already defined in Darwin
+{$IFDEF DARWIN}
+  {$DEFINE UNIX}
+{$ENDIF}
+{$IFDEF HAIKU}
+  {$DEFINE UNIX}
+{$ENDIF}
 
 {$IFDEF UNIX}
   {$IFNDEF DARWIN}
     {$linklib c}
   {$ENDIF}
-  {$linklib pthread}
+  {$IFDEF HAIKU}
+    {$linklib root}
+  {$ELSE}
+    {$linklib pthread}
+  {$ENDIF}
 {$ENDIF}
 
 {$IFDEF FPC}