inclusion of libc.h is conditional on __APPLE__
authorMalcolm.Wallace@cs.york.ac.uk <unknown>
Tue, 17 Apr 2007 08:55:56 +0000 (08:55 +0000)
committerMalcolm.Wallace@cs.york.ac.uk <unknown>
Tue, 17 Apr 2007 08:55:56 +0000 (08:55 +0000)
NHC/PosixTypes.hsc

index b5ad5c6..64c3e28 100644 (file)
@@ -51,7 +51,9 @@ import Control.Monad
 -- Curious hack to ensure that the CTypes macros are expanded *after* hsc2hs.
 ##include "CTypes.h"
 -- C header files that contain all the types we are looking for here.
+#if __APPLE__
 #include <libc.h>
+#endif
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/resource.h>