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

ruby-changes:42728

From: naruse <ko1@a...>
Date: Thu, 28 Apr 2016 00:18:44 +0900 (JST)
Subject: [ruby-changes:42728] naruse:r54802 (trunk): * time.c: define _DEFAULT_SOURCE because glibc 2.20 depracates

naruse	2016-04-28 01:15:21 +0900 (Thu, 28 Apr 2016)

  New Revision: 54802

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

  Log:
    * time.c: define _DEFAULT_SOURCE because glibc 2.20 depracates
      _BSD_SOURCE.
      https://sourceware.org/glibc/wiki/Release/2.20

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/time.c
Index: time.c
===================================================================
--- time.c	(revision 54801)
+++ time.c	(revision 54802)
@@ -9,6 +9,7 @@ https://github.com/ruby/ruby/blob/trunk/time.c#L9
 
 **********************************************************************/
 
+#define _DEFAULT_SOURCE
 #define _BSD_SOURCE
 #include "internal.h"
 #include <sys/types.h>
Index: configure.in
===================================================================
--- configure.in	(revision 54801)
+++ configure.in	(revision 54802)
@@ -2649,10 +2649,9 @@ fi https://github.com/ruby/ruby/blob/trunk/configure.in#L2649
 AC_STRUCT_TIMEZONE
 AC_CACHE_CHECK(for struct tm.tm_gmtoff, rb_cv_member_struct_tm_tm_gmtoff,
   [AC_TRY_COMPILE([
-   @%:@include <time.h>
-@%:@ifndef _BSD_SOURCE
-@%:@define _BSD_SOURCE 1
-@%:@endif
+@%:@define _BSD_SOURCE
+@%:@define _DEFAULT_SOURCE
+@%:@include <time.h>
    ],
     [struct tm t; t.tm_gmtoff = 3600;],
   [rb_cv_member_struct_tm_tm_gmtoff=yes],
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54801)
+++ ChangeLog	(revision 54802)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 28 01:11:14 2016  NARUSE, Yui  <naruse@r...>
+
+	* time.c: define _DEFAULT_SOURCE because glibc 2.20 depracates
+	  _BSD_SOURCE.
+	  https://sourceware.org/glibc/wiki/Release/2.20
+
 Thu Apr 28 00:27:55 2016  Tanaka Akira  <akr@f...>
 
 	* numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into

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

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