Use pthread_kill on OS X too
authorIan Lynagh <ian@well-typed.com>
Thu, 17 Jan 2013 19:21:24 +0000 (19:21 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 17 Jan 2013 19:21:24 +0000 (19:21 +0000)
Fixes signals004(threaded1,threaded2) on OS X 32.

System/Posix/Signals.hsc

index c49775d..6290bc9 100644 (file)
@@ -295,7 +295,7 @@ foreign import ccall unsafe "killpg"
 raiseSignal :: Signal -> IO ()
 raiseSignal sig = throwErrnoIfMinus1_ "raiseSignal" (c_raise sig)
 
-#if defined(__GLASGOW_HASKELL__) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS))
+#if defined(__GLASGOW_HASKELL__) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(darwin_HOST_OS))
 foreign import ccall unsafe "genericRaise"
   c_raise :: CInt -> IO CInt
 #else