summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index db940a7be5..d09569ec7d 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1565,6 +1565,10 @@ rb_thread_create_mjit_thread(void (*worker_func)(void))
return ret;
}
+#ifndef USE_NATIVE_SLEEP_COND
+#define USE_NATIVE_SLEEP_COND (1)
+#endif
+
#if USE_NATIVE_SLEEP_COND
rb_nativethread_cond_t *
rb_sleep_cond_get(const rb_execution_context_t *ec)