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

rts/RtsUtils.c

index 4d6d362..fcbb757 100644 (file)
@@ -272,7 +272,7 @@ heapCheckFail( void )
  * genericRaise(), rather than raise(3).
  */
 int genericRaise(int sig) {
-#if defined(THREADED_RTS) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS))
+#if defined(THREADED_RTS) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(darwin_HOST_OS))
         return pthread_kill(pthread_self(), sig);
 #else
         return raise(sig);