ruby-changes:35804
From: nobu <ko1@a...>
Date: Sun, 12 Oct 2014 00:13:38 +0900 (JST)
Subject: [ruby-changes:35804] nobu:r47886 (trunk): file.c: fix compile error on Linux
nobu 2014-10-12 00:13:24 +0900 (Sun, 12 Oct 2014) New Revision: 47886 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47886 Log: 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. Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 47885) +++ file.c (revision 47886) @@ -22,7 +22,6 @@ https://github.com/ruby/ruby/blob/trunk/file.c#L22 #ifdef __APPLE__ #include <CoreFoundation/CFString.h> #endif -#include <sys/time.h> #include "ruby/ruby.h" #include "ruby/io.h" @@ -33,6 +32,7 @@ https://github.com/ruby/ruby/blob/trunk/file.c#L32 #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#include <sys/time.h> #ifdef HAVE_SYS_FILE_H # include <sys/file.h> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/