summaryrefslogtreecommitdiff
path: root/thread_pthread.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 09:28:43 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 09:28:43 (GMT)
commit1bd2c78b05b05f7868cd3b5bfc1e02ae11fb9eaf (patch)
tree6578a5f6b91bb6f4a96189c7ea011bc454aa295e /thread_pthread.h
parent562a1a79297d00b9ac92498173ad1fcba9fc5f51 (diff)
* thread_pthread.c (USE_MONOTONIC_COND): check the availability
more strictly. * thread_pthread.h (rb_thread_cond_t): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.h')
-rw-r--r--thread_pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_pthread.h b/thread_pthread.h
index 64a17fc..97a26e0 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -20,7 +20,9 @@ typedef pthread_mutex_t rb_thread_lock_t;
typedef struct rb_thread_cond_struct {
pthread_cond_t cond;
+#ifdef HAVE_CLOCKID_T
clockid_t clockid;
+#endif
} rb_thread_cond_t;
typedef struct native_thread_data_struct {