diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-11 15:13:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-11 15:13:24 +0000 |
commit | 0d43e1484141dec6afcd9a315ae356afaad5bf0b (patch) | |
tree | 68c90df5ff0dc18dfc3a9548e19f3fdae6cf6649 /file.c | |
parent | 0d1b2755f542cfc33cc3eb14e9df40766d0c3d72 (diff) | |
download | ruby-0d43e1484141dec6afcd9a315ae356afaad5bf0b.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |