From: Malcolm.Wallace@cs.york.ac.uk Date: Tue, 17 Apr 2007 08:55:56 +0000 (+0000) Subject: inclusion of libc.h is conditional on __APPLE__ X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=33af51216ec66ad66cf59f54b7b94c65fad6a944;p=haskell-directory.git inclusion of libc.h is conditional on __APPLE__ --- diff --git a/NHC/PosixTypes.hsc b/NHC/PosixTypes.hsc index b5ad5c6..64c3e28 100644 --- 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. +#if __APPLE__ #include +#endif #include #include #include