[project @ 2003-04-11 23:39:43 by ross]
authorross <unknown>
Fri, 11 Apr 2003 23:39:44 +0000 (23:39 +0000)
committerross <unknown>
Fri, 11 Apr 2003 23:39:44 +0000 (23:39 +0000)
Hugs only: add a CBITS "pragma" to tell the Hugs conversion script which
files from <package>/cbits should be linked with the module by ffihugs,
e.g. {-# CBITS HsNet.c initWinSock.c ancilData.c #-}

Foreign/C/Error.hs
System/Posix/Internals.hs

index ddf8c9e..613dd1a 100644 (file)
@@ -116,6 +116,10 @@ import System.IO           ( IOError, Handle, ioError )
 import System.IO.Unsafe                ( unsafePerformIO )
 #endif
 
+#ifdef __HUGS__
+{-# CBITS errno.c #-}
+#endif
+
 -- "errno" type
 -- ------------
 
index aac0997..7ac142f 100644 (file)
@@ -43,6 +43,8 @@ import System.IO
 
 #ifdef __HUGS__
 import Hugs.Prelude (IOException(..), IOErrorType(..))
+
+{-# CBITS PrelIOUtils.c #-}
 #endif
 
 -- ---------------------------------------------------------------------------