Don't use clockid_t in mythread.h when clock_gettime() isn't available.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 17 May 2011 09:52:18 +0000 (12:52 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 17 May 2011 09:52:18 +0000 (12:52 +0300)
Thanks to Wim Lewis for the patch.

src/common/mythread.h

index 47af493..c538dea 100644 (file)
@@ -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;