diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 05a6af2a45..89b05e59da 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -245,7 +245,7 @@ int pthread_condattr_init(pthread_condattr_t *attr); static void native_cond_initialize(rb_thread_cond_t *cond, int flags) { -#ifdef HAVE_PTHREAD_COND_INITIALIZE +#ifdef HAVE_PTHREAD_COND_INIT int r; pthread_condattr_t attr; @@ -273,7 +273,7 @@ native_cond_initialize(rb_thread_cond_t *cond, int flags) static void native_cond_destroy(rb_thread_cond_t *cond) { -#ifdef HAVE_PTHREAD_COND_INITIALIZE +#ifdef HAVE_PTHREAD_COND_INIT int r = pthread_cond_destroy(&cond->cond); if (r != 0) { rb_bug_errno("pthread_cond_destroy", r); |