diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 16:15:21 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 16:15:21 +0000 |
commit | 173005bb6fa9c4b2f54633313f4ff352348a3eeb (patch) | |
tree | b4eb48beb2191f4e64ed164975003a9f6b462046 | |
parent | 43f2058032f98ee6ddf7b1f4564accb305acc7e3 (diff) | |
download | ruby-173005bb6fa9c4b2f54633313f4ff352348a3eeb.tar.gz |
* time.c: define _DEFAULT_SOURCE because glibc 2.20 depracates
_BSD_SOURCE.
https://sourceware.org/glibc/wiki/Release/2.20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 7 | ||||
-rw-r--r-- | time.c | 1 |
3 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,9 @@ +Thu Apr 28 01:11:14 2016 NARUSE, Yui <naruse@ruby-lang.org> + + * 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@fsij.org> * numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into diff --git a/configure.in b/configure.in index feb1fffa8f..292e40ce1a 100644 --- a/configure.in +++ b/configure.in @@ -2649,10 +2649,9 @@ fi 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], @@ -9,6 +9,7 @@ **********************************************************************/ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include "internal.h" #include <sys/types.h> |