[project @ 2004-10-02 07:34:38 by dons]
authordons <unknown>
Sat, 2 Oct 2004 07:34:38 +0000 (07:34 +0000)
committerdons <unknown>
Sat, 2 Oct 2004 07:34:38 +0000 (07:34 +0000)
Bind raiseSignal to genericRaise, on OpenBSD only, atm.

System/Posix/Signals.hsc

index db68d28..ee40238 100644 (file)
@@ -287,8 +287,13 @@ foreign import ccall unsafe "killpg"
 raiseSignal :: Signal -> IO ()
 raiseSignal sig = throwErrnoIfMinus1_ "raiseSignal" (c_raise sig)
 
+#if defined(__GLASGOW_HASKELL__) && defined(openbsd_TARGET_OS)
+foreign import ccall unsafe "genericRaise"
+  c_raise :: CInt -> IO CInt
+#else
 foreign import ccall unsafe "raise"
   c_raise :: CInt -> IO CInt
+#endif
 
 #ifdef __GLASGOW_HASKELL__
 data Handler = Default