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

ruby-changes:27732

From: kosaki <ko1@a...>
Date: Sun, 17 Mar 2013 02:40:29 +0900 (JST)
Subject: [ruby-changes:27732] kosaki:r39784 (trunk): * ext/date/date_core.c: include sys/time.h for avoiding implicit

kosaki	2013-03-17 02:40:16 +0900 (Sun, 17 Mar 2013)

  New Revision: 39784

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

  Log:
    * ext/date/date_core.c: include sys/time.h for avoiding implicit
      declaration of gettimeofday().

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/date_core.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39783)
+++ ChangeLog	(revision 39784)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Mar 17 02:38:21 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* ext/date/date_core.c: include sys/time.h for avoiding implicit
+	  declaration of gettimeofday().
+
 Sun Mar 17 00:55:31 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* include/ruby/missing.h: removed __linux__. it's unnecessary.
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 39783)
+++ ext/date/date_core.c	(revision 39784)
@@ -6,6 +6,9 @@ https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L6
 #include "ruby/encoding.h"
 #include <math.h>
 #include <time.h>
+#if defined(HAVE_SYS_TIME_H)
+#include <sys/time.h>
+#endif
 
 #define NDEBUG
 #include <assert.h>

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

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