summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-17 14:46:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-17 18:36:08 +0900
commitf08fcd0e803bb07912794b8a2366973946d2af2f (patch)
tree274c9247376b2d53755f023019625d64350cdc27 /thread_pthread.c
parent85cee293570e10f11170d54c7fae7ac681a52193 (diff)
Fix possible use of undefined macros on very old macOS [ci skip]
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index c29c7e1958..aa5435aa99 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1861,7 +1861,8 @@ native_thread_native_thread_id(rb_thread_t *target_th)
return INT2FIX(tid);
#elif defined(__APPLE__)
uint64_t tid;
-# if ((MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6) || \
+# if (!defined(MAC_OS_X_VERSION_10_6) || \
+ (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6) || \
defined(__POWERPC__) /* never defined for PowerPC platforms */)
const bool no_pthread_threadid_np = true;
# define NO_PTHREAD_MACH_THREAD_NP 1