[前][次][番号順一覧][スレッド一覧]

ruby-changes:35806

From: yugui <ko1@a...>
Date: Sun, 12 Oct 2014 01:39:32 +0900 (JST)
Subject: [ruby-changes:35806] yugui:r47888 (trunk): * file.c: include sys/time.h only if HAVE_SYS_TIME_H

yugui	2014-10-12 01:39:15 +0900 (Sun, 12 Oct 2014)

  New Revision: 47888

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47888

  Log:
    * file.c: include sys/time.h only if HAVE_SYS_TIME_H

  Modified files:
    trunk/ChangeLog
    trunk/file.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47887)
+++ ChangeLog	(revision 47888)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 12 01:37:11 2014  Yuki Yugui Sonoda  <yugui@y...>
+
+	* file.c: include sys/time.h only if HAVE_SYS_TIME_H
+
 Sat Oct 11 22:29:40 2014  Yuki Yugui Sonoda  <yugui@y...>
 
 	* file.c (HAVE_UTIMENSAT): disabled for NativeClient.
Index: file.c
===================================================================
--- file.c	(revision 47887)
+++ file.c	(revision 47888)
@@ -32,7 +32,9 @@ 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_TIME_H
+# include <sys/time.h>
+#endif
 
 #ifdef HAVE_SYS_FILE_H
 # include <sys/file.h>

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]