Commit 0cb35b55 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Mac OS X 10.6 needed for pthread_threadid_np(), fixes #7356

Based on a patch from Thorkil Naur.
parent fe1fce87
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment