* 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
@ -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>
|
Thu Apr 28 00:27:55 2016 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into
|
* numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into
|
||||||
|
@ -2649,10 +2649,9 @@ fi
|
|||||||
AC_STRUCT_TIMEZONE
|
AC_STRUCT_TIMEZONE
|
||||||
AC_CACHE_CHECK(for struct tm.tm_gmtoff, rb_cv_member_struct_tm_tm_gmtoff,
|
AC_CACHE_CHECK(for struct tm.tm_gmtoff, rb_cv_member_struct_tm_tm_gmtoff,
|
||||||
[AC_TRY_COMPILE([
|
[AC_TRY_COMPILE([
|
||||||
@%:@include <time.h>
|
@%:@define _BSD_SOURCE
|
||||||
@%:@ifndef _BSD_SOURCE
|
@%:@define _DEFAULT_SOURCE
|
||||||
@%:@define _BSD_SOURCE 1
|
@%:@include <time.h>
|
||||||
@%:@endif
|
|
||||||
],
|
],
|
||||||
[struct tm t; t.tm_gmtoff = 3600;],
|
[struct tm t; t.tm_gmtoff = 3600;],
|
||||||
[rb_cv_member_struct_tm_tm_gmtoff=yes],
|
[rb_cv_member_struct_tm_tm_gmtoff=yes],
|
||||||
|
1
time.c
1
time.c
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user