From 326dd6e0ccb98141ef8578d429d113e8f714b4c6 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 16 Mar 2013 17:40:16 +0000 Subject: * 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 --- ext/date/date_core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/date') diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 323a4550b2..51fb5c1d83 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6,6 +6,9 @@ #include "ruby/encoding.h" #include #include +#if defined(HAVE_SYS_TIME_H) +#include +#endif #define NDEBUG #include -- cgit v1.2.3