From 33af51216ec66ad66cf59f54b7b94c65fad6a944 Mon Sep 17 00:00:00 2001 From: "Malcolm.Wallace@cs.york.ac.uk" Date: Tue, 17 Apr 2007 08:55:56 +0000 Subject: [PATCH] inclusion of libc.h is conditional on __APPLE__ --- NHC/PosixTypes.hsc | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.4