summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 17:40:16 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 17:40:16 +0000
commit326dd6e0ccb98141ef8578d429d113e8f714b4c6 (patch)
treec2b265e37920f4688977c2d0c566c1718d88ace4 /ext/date
parent28d3acb045cc1f5dec7fbaf9f71ac1ee1256e7d8 (diff)
* ext/date/date_core.c: include sys/time.h for avoiding implicit
declaration of gettimeofday(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index 323a455..51fb5c1 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -6,6 +6,9 @@
#include "ruby/encoding.h"
#include <math.h>
#include <time.h>
+#if defined(HAVE_SYS_TIME_H)
+#include <sys/time.h>
+#endif
#define NDEBUG
#include <assert.h>