From 0d43e1484141dec6afcd9a315ae356afaad5bf0b Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Oct 2014 15:13:24 +0000 Subject: 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 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') 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 #endif -#include #include "ruby/ruby.h" #include "ruby/io.h" @@ -33,6 +32,7 @@ #ifdef HAVE_UNISTD_H #include #endif +#include #ifdef HAVE_SYS_FILE_H # include -- cgit v1.2.3