diff options
author | Ian Lynagh <igloo@earth.li> | 2011-12-03 16:43:18 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-12-03 16:43:18 +0000 |
commit | 77927c818b75a6f77a2c63d8f42360d3a9819002 (patch) | |
tree | d4cb52df97fd1a58136abf5c249e476be056c1d1 | |
parent | b02e926961caeabe4ebe0bf6b3a671e1ec190864 (diff) |
Roll back the sigset capi changes
They broken the build on OSX. See #2979.
-rw-r--r-- | System/Posix/Signals.hsc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc index 463dfc7..91e642f 100644 --- a/System/Posix/Signals.hsc +++ b/System/Posix/Signals.hsc @@ -598,7 +598,7 @@ awaitSignal maybe_sigset = do -- XXX My manpage says it can also return EFAULT. And why is ignoring -- EINTR the right thing to do? -foreign import capi unsafe "HsUnix.h sigsuspend" +foreign import ccall unsafe "sigsuspend" c_sigsuspend :: Ptr CSigset -> IO CInt #endif @@ -612,16 +612,16 @@ foreign import ccall unsafe "sigfillset" foreign import ccall unsafe "sigismember" c_sigismember :: Ptr CSigset -> CInt -> IO CInt #else -foreign import capi unsafe "HsUnix.h sigdelset" +foreign import ccall unsafe "__hscore_sigdelset" c_sigdelset :: Ptr CSigset -> CInt -> IO CInt -foreign import capi unsafe "HsUnix.h sigfillset" +foreign import ccall unsafe "__hscore_sigfillset" c_sigfillset :: Ptr CSigset -> IO CInt -foreign import capi unsafe "HsUnix.h sigismember" +foreign import ccall unsafe "__hscore_sigismember" c_sigismember :: Ptr CSigset -> CInt -> IO CInt #endif /* __HUGS__ */ -foreign import capi unsafe "HsUnix.h sigpending" +foreign import ccall unsafe "sigpending" c_sigpending :: Ptr CSigset -> IO CInt |