summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-18 19:06:32 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-18 19:06:32 +0000
commit9a8b21446ea9edf55272d5e048d97f1c94640e9e (patch)
treec50372a036c4b99e974ca467a0bc1f44e8928d2c /time.c
parent04eb614251308b570aedfef96712a8d87a294d7d (diff)
downloadruby-9a8b21446ea9edf55272d5e048d97f1c94640e9e.tar.gz
* configure.in (rb_cv_member_struct_tm_tm_gmtoff): For Linux (glibc)
define _BSD_SOURCE for time.h to define struct tm.tm_gmtoff. * time.c: define _BSD_SOURCE at the top. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time.c b/time.c
index d3f0ca2171..b65d6e5c85 100644
--- a/time.c
+++ b/time.c
@@ -9,6 +9,7 @@
**********************************************************************/
+#define _BSD_SOURCE
#include "internal.h"
#include <sys/types.h>
#include <time.h>