diff --git a/ChangeLog b/ChangeLog index 26b1d82514..56393f57e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Oct 12 01:37:11 2014 Yuki Yugui Sonoda + + * file.c: include sys/time.h only if HAVE_SYS_TIME_H + Sat Oct 11 22:29:40 2014 Yuki Yugui Sonoda * file.c (HAVE_UTIMENSAT): disabled for NativeClient. diff --git a/file.c b/file.c index a1ad4c3dd6..c3ed3b524b 100644 --- a/file.c +++ b/file.c @@ -32,7 +32,9 @@ #ifdef HAVE_UNISTD_H #include #endif -#include +#ifdef HAVE_SYS_TIME_H +# include +#endif #ifdef HAVE_SYS_FILE_H # include