summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-11 15:13:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-11 15:13:24 +0000
commit0d43e1484141dec6afcd9a315ae356afaad5bf0b (patch)
tree68c90df5ff0dc18dfc3a9548e19f3fdae6cf6649 /file.c
parent0d1b2755f542cfc33cc3eb14e9df40766d0c3d72 (diff)
file.c: fix compile error on Linux
* file.c (sys/time.h): include after unistd.h to get rid of mismatch on struct stat and some system call functions on Linux. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index e4bf48e185..a1ad4c3dd6 100644
--- a/file.c
+++ b/file.c
@@ -22,7 +22,6 @@
#ifdef __APPLE__
#include <CoreFoundation/CFString.h>
#endif
-#include <sys/time.h>
#include "ruby/ruby.h"
#include "ruby/io.h"
@@ -33,6 +32,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <sys/time.h>
#ifdef HAVE_SYS_FILE_H
# include <sys/file.h>