鏡像自
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:
父節點
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
|
||||
|
||||
|
載入中…
x
新增問題並參考
Block a user