mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
43f2058032
commit
173005bb6f
3 changed files with 10 additions and 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
|
||||
|
|
|
@ -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],
|
||||
|
|
1
time.c
1
time.c
|
@ -9,6 +9,7 @@
|
|||
|
||||
**********************************************************************/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#include "internal.h"
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue