summaryrefslogtreecommitdiff
path: root/rts/RtsUtils.c
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-17 19:23:17 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-17 19:23:17 +0000
commit3f90064feff183aaa744db87704772874e6dc249 (patch)
tree5b453ce0946bc597e633f4a1d0f5679a9b46771c /rts/RtsUtils.c
parentfd3fd18a570d7b61e72614fc9594e721d8a53ab0 (diff)
downloadhaskell-3f90064feff183aaa744db87704772874e6dc249.tar.gz
Use pthread_kill on OS X too
Fixes signals004(threaded1,threaded2) on OS X 32.
Diffstat (limited to 'rts/RtsUtils.c')
-rw-r--r--rts/RtsUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c
index 4d6d362722..fcbb757c05 100644
--- a/rts/RtsUtils.c
+++ b/rts/RtsUtils.c
@@ -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);