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:
Jia Tan 2022-12-29 01:55:19 +08:00
parent f82294c831
commit 2fcba17fc4
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@
#include "private.h" #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> # include <sys/time.h>
#endif #endif