From: Lasse Collin Date: Tue, 17 May 2011 09:52:18 +0000 (+0300) Subject: Don't use clockid_t in mythread.h when clock_gettime() isn't available. X-Git-Tag: upstream/5.1.3~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f004128678d43ea10b4a6401aa184cf83252d6ec;p=platform%2Fupstream%2Fxz.git Don't use clockid_t in mythread.h when clock_gettime() isn't available. Thanks to Wim Lewis for the patch. --- diff --git a/src/common/mythread.h b/src/common/mythread.h index 47af493..c538dea 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;