MacOS 10.3 needs #include <libc.h> as well
authorMalcolm.Wallace@cs.york.ac.uk <unknown>
Sat, 14 Apr 2007 15:55:07 +0000 (15:55 +0000)
committerMalcolm.Wallace@cs.york.ac.uk <unknown>
Sat, 14 Apr 2007 15:55:07 +0000 (15:55 +0000)
NHC/PosixTypes.hsc

index fabe253..b5ad5c6 100644 (file)
@@ -51,6 +51,7 @@ 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.
+#include <libc.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/resource.h>