diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index ba2b954388..85483c1328 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -28,9 +28,10 @@ static void native_cond_wait(rb_thread_cond_t *cond, pthread_mutex_t *mutex); static void native_cond_initialize(rb_thread_cond_t *cond, int flags); static void native_cond_destroy(rb_thread_cond_t *cond); +#define RB_CONDATTR_CLOCK_MONOTONIC 1 + #if defined(HAVE_PTHREAD_CONDATTR_SETCLOCK) && defined(CLOCK_MONOTONIC) && defined(HAVE_CLOCK_GETTIME) #define USE_MONOTONIC_COND 1 -#define RB_CONDATTR_CLOCK_MONOTONIC 1 #endif #define GVL_SIMPLE_LOCK 0 |