summaryrefslogtreecommitdiff
path: root/source4/lib/replace/timegm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/timegm.c')
-rw-r--r--source4/lib/replace/timegm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/replace/timegm.c b/source4/lib/replace/timegm.c
index 1c9a0e4165..c2746db1a4 100644
--- a/source4/lib/replace/timegm.c
+++ b/source4/lib/replace/timegm.c
@@ -40,6 +40,14 @@
#ifndef HAVE_TIMEGM
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
+#ifdef TIME_H
+#include <time.h>
+#endif
+
static int is_leap(unsigned y)
{
y += 1900;