mirror of https://git.tukaani.org/xz.git
Don't use clockid_t in mythread.h when clock_gettime() isn't available.
Thanks to Wim Lewis for the patch.
This commit is contained in:
parent
f779516f42
commit
f004128678
|
@ -86,9 +86,11 @@ typedef struct {
|
||||||
/// Condition variable
|
/// Condition variable
|
||||||
pthread_cond_t cond;
|
pthread_cond_t cond;
|
||||||
|
|
||||||
|
#ifdef HAVE_CLOCK_GETTIME
|
||||||
/// Clock ID (CLOCK_REALTIME or CLOCK_MONOTONIC) associated with
|
/// Clock ID (CLOCK_REALTIME or CLOCK_MONOTONIC) associated with
|
||||||
/// the condition variable
|
/// the condition variable
|
||||||
clockid_t clk_id;
|
clockid_t clk_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
} mythread_cond;
|
} mythread_cond;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue