From: Michael Jeanson Date: Wed, 22 Jun 2016 20:23:51 +0000 (-0400) Subject: Fix: Use pthread_self to get threadid on OSX X-Git-Tag: v0.10.0~31 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b83b3590caf8ddd0fb1393b0d8378f916c8bf831;p=userspace-rcu.git Fix: Use pthread_self to get threadid on OSX Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/common/thread-id.h b/tests/common/thread-id.h index 690fdf0..56835e3 100644 --- a/tests/common/thread-id.h +++ b/tests/common/thread-id.h @@ -50,7 +50,7 @@ unsigned long urcu_get_thread_id(void) { return (unsigned long) pthread_getthreadid_np(); } -#elif defined(__sun__) +#elif defined(__sun__) || defined(__APPLE__) #include static inline