aboutsummaryrefslogtreecommitdiff
path: root/src/common/mythread.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-05-17 12:52:18 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-05-17 12:52:18 +0300
commitf004128678d43ea10b4a6401aa184cf83252d6ec (patch)
treec4909ac93fe64bec3c3367d6bb88a1a8ff181224 /src/common/mythread.h
parentUpdate THANKS. (diff)
downloadxz-f004128678d43ea10b4a6401aa184cf83252d6ec.tar.xz
Don't use clockid_t in mythread.h when clock_gettime() isn't available.
Thanks to Wim Lewis for the patch.
Diffstat (limited to 'src/common/mythread.h')
-rw-r--r--src/common/mythread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 47af4932..c538dea2 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -86,9 +86,11 @@ typedef struct {
/// Condition variable
pthread_cond_t cond;
+#ifdef HAVE_CLOCK_GETTIME
/// Clock ID (CLOCK_REALTIME or CLOCK_MONOTONIC) associated with
/// the condition variable
clockid_t clk_id;
+#endif
} mythread_cond;