projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a03b104
)
inclusion of libc.h is conditional on __APPLE__
author
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Tue, 17 Apr 2007 08:55:56 +0000
(08:55 +0000)
committer
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Tue, 17 Apr 2007 08:55:56 +0000
(08:55 +0000)
NHC/PosixTypes.hsc
patch
|
blob
|
history
diff --git
a/NHC/PosixTypes.hsc
b/NHC/PosixTypes.hsc
index
b5ad5c6
..
64c3e28
100644
(file)
--- a/
NHC/PosixTypes.hsc
+++ b/
NHC/PosixTypes.hsc
@@
-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.
-- 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>
#include <libc.h>
+#endif
#include <stdlib.h>
#include <unistd.h>
#include <sys/resource.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/resource.h>