Fix build when we have HTYPE_TCFLAG_T
authorIan Lynagh <igloo@earth.li>
Mon, 5 Jan 2009 10:20:20 +0000 (10:20 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 5 Jan 2009 10:20:20 +0000 (10:20 +0000)
System/Posix/Internals.hs

index 64e4f20..c4d9b19 100644 (file)
@@ -35,7 +35,10 @@ import Foreign.C
 
 import Data.Bits
 import Data.Maybe
+
+#if !defined(HTYPE_TCFLAG_T)
 import System.IO.Error
+#endif
 
 #if __GLASGOW_HASKELL__
 import GHC.Base