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.9.3~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7795dee16c0ff48f5ad3b82db3b63acc68daaf27;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