Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/0cb35b5514e6280ba330bd3a4acb8e6a71c300ff

>---------------------------------------------------------------

commit 0cb35b5514e6280ba330bd3a4acb8e6a71c300ff
Author: Ian Lynagh <i...@well-typed.com>
Date:   Sat Dec 1 23:22:48 2012 +0000

    Mac OS X 10.6 needed for pthread_threadid_np(), fixes #7356
    
    Based on a patch from Thorkil Naur.

>---------------------------------------------------------------

 rts/posix/OSThreads.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index 2fa5670..ae31966 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -337,7 +337,8 @@ KernelThreadId kernelThreadId (void)
 #elif defined(freebsd_HOST_OS) && (__FreeBSD_version >= 900031)
     return pthread_getthreadid_np();
 
-#elif defined(darwin_HOST_OS)
+// Check for OS X >= 10.6 (see #7356)
+#elif defined(darwin_HOST_OS) && !(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && 
__MAC_OS_X_VERSION_MIN_REQUIRED < 1060)
     uint64_t ktid;
     pthread_threadid_np(NULL, &ktid);
     return ktid;



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to