mirror of https://git.tukaani.org/xz.git
xz: Includes <time.h> and <sys/time.h> conditionally in mytime.c.
Previously, mytime.c depended on mythread.h for <time.h> to be included.
This commit is contained in:
parent
f82294c831
commit
2fcba17fc4
|
@ -12,7 +12,9 @@
|
|||
|
||||
#include "private.h"
|
||||
|
||||
#if !(defined(HAVE_CLOCK_GETTIME) && defined(HAVE_CLOCK_MONOTONIC))
|
||||
#if defined(HAVE_CLOCK_GETTIME) && defined(HAVE_CLOCK_MONOTONIC)
|
||||
# include <time.h>
|
||||
#else
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue