aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 3 insertions, 1 deletions
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 <unistd.h>
#endif
-#include <sys/time.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#ifdef HAVE_SYS_FILE_H
# include <sys/file.h>