diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-17 14:04:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-17 14:04:02 +0000 |
commit | 7788d102c9fe6f58ec9413009374ffeb6b58c84f (patch) | |
tree | d9afdc4c50800ea23746704facb2d1659edcc7ab /thread_pthread.c | |
parent | 315a0cb926ab5a4654a4e0a84eb600512e9960a3 (diff) | |
download | ruby-7788d102c9fe6f58ec9413009374ffeb6b58c84f.tar.gz |
fix NaCl support
* configure.in: fix function name to be checked, to initialize
rb_thread_cond_t properly.
* thread_pthread.c (native_cond_initialize, native_cond_destroy):
fix macro name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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); |