1
0
鏡像自 https://git.tukaani.org/xz.git synced 2025-07-06 12:26:39 +00:00

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
父節點 501c6013d4
當前提交 c410d812ea

查看文件

@ -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