From 8980a9b47bcb3690d646e189c98b16bc7a6a7733 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 11 Oct 2014 16:39:15 +0000 Subject: * file.c: include sys/time.h only if HAVE_SYS_TIME_H git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'file.c') 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 -- cgit v1.2.1