[project @ 2004-01-14 11:16:10 by malcolm]
authormalcolm <unknown>
Wed, 14 Jan 2004 11:16:10 +0000 (11:16 +0000)
committermalcolm <unknown>
Wed, 14 Jan 2004 11:16:10 +0000 (11:16 +0000)
Unbreak for nhc98 after recent errno changes.

Foreign/C/Error.hs

index dc37966..d7da52d 100644 (file)
@@ -278,7 +278,7 @@ getErrno :: IO Errno
 -- thread gets its own copy.
 #ifdef __NHC__
 getErrno = do e <- peek _errno; return (Errno e)
-foreign import ccall unsafe "errno.h &errno" _errno :: IO (Ptr CInt)
+foreign import ccall unsafe "errno.h &errno" _errno :: Ptr CInt
 #else
 getErrno = do e <- get_errno; return (Errno e)
 foreign import ccall unsafe "HsBase.h __hscore_get_errno" get_errno :: IO CInt