[commit: unix] master: Use capi some more (part of #5480) (a55cb03)

Simon Marlow marlowsd at gmail.com
Wed Nov 30 09:36:04 CET 2011


On 29/11/2011 21:23, Ian Lynagh wrote:

> diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc
> index 4257688..463dfc7 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 ccall unsafe "sigsuspend"
> +foreign import capi unsafe "HsUnix.h sigsuspend"
>     c_sigsuspend :: Ptr CSigset ->  IO CInt
>   #endif

Just a thought: has {-# INCLUDE #-} come back from the dead now that we 
have capi?

Cheers,
	Simon



More information about the Cvs-libraries mailing list