summaryrefslogtreecommitdiff
path: root/source4/lib/replace/timegm.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 10:51:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:33 -0500
commit4c0b19277a495b33869f447166d03a0e1e163b72 (patch)
tree5d9703aea46fcc7882b154ba9fad7722fa9c8ffb /source4/lib/replace/timegm.c
parentf425072ed961f8cb832c8515ed71766142f07138 (diff)
downloadsamba-4c0b19277a495b33869f447166d03a0e1e163b72.tar.gz
samba-4c0b19277a495b33869f447166d03a0e1e163b72.tar.bz2
samba-4c0b19277a495b33869f447166d03a0e1e163b72.zip
r18460: split out timegm test and only add timegm.o when needed
metze (This used to be commit f9bff4dbdad8c7acc649d13a5666b58967bf5d92)
Diffstat (limited to 'source4/lib/replace/timegm.c')
-rw-r--r--source4/lib/replace/timegm.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source4/lib/replace/timegm.c b/source4/lib/replace/timegm.c
index bd20da703f..ff90626d44 100644
--- a/source4/lib/replace/timegm.c
+++ b/source4/lib/replace/timegm.c
@@ -36,17 +36,7 @@
*/
#include "replace.h"
-#include <stdlib.h>
-
-#ifndef HAVE_TIMEGM
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
+#include "system/time.h"
static int is_leap(unsigned y)
{
@@ -76,5 +66,3 @@ time_t timegm(struct tm *tm)
res += tm->tm_sec;
return res;
}
-
-#endif /* HAVE_TIMEGM */