From ccb9fb0b26fa8fed9320a0b2e0ca86202dd4b3de Mon Sep 17 00:00:00 2001 From: nagachika Date: Wed, 20 Mar 2013 13:34:16 +0000 Subject: merge revision(s) 39772,39773: [Backport #8080] * configure.in: check struct timeval exist or not. * include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL properly. and don't include sys/time.h if struct timeval exist. * file.c: include sys/time.h explicitly. * random.c: ditto. * thread_pthread.c: ditto. * time.c: ditto. * ext/date/date_strftime.c: ditto. * include/ruby/missing.h (struct timespec): include git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_strftime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c index 54324dad09..20931a3124 100644 --- a/ext/date/date_strftime.c +++ b/ext/date/date_strftime.c @@ -12,6 +12,10 @@ #include #include +#if defined(HAVE_SYS_TIME_H) +#include +#endif + #undef strchr /* avoid AIX weirdness */ #define range(low, item, hi) (item) -- cgit v1.2.3