summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/date/date_strftime.c4
1 files changed, 4 insertions, 0 deletions
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 <ctype.h>
#include <errno.h>
+#if defined(HAVE_SYS_TIME_H)
+#include <sys/time.h>
+#endif
+
#undef strchr /* avoid AIX weirdness */
#define range(low, item, hi) (item)