diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-13 10:51:26 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2006-09-13 10:51:26 +0000 |
commit | 0ef32bd81ee96d2d38e7f9ea84a84cc2945173cd (patch) | |
tree | 2048330115881cd331e7428bb65383e7215d93f1 /source/lib/replace/timegm.c | |
parent | 3dd3938201a50e51678e05f6f0261db40c50ddee (diff) | |
download | samba-0ef32bd81ee96d2d38e7f9ea84a84cc2945173cd.tar.gz samba-0ef32bd81ee96d2d38e7f9ea84a84cc2945173cd.tar.xz samba-0ef32bd81ee96d2d38e7f9ea84a84cc2945173cd.zip |
r18460: split out timegm test and only add timegm.o when needed
metze
Diffstat (limited to 'source/lib/replace/timegm.c')
-rw-r--r-- | source/lib/replace/timegm.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/lib/replace/timegm.c b/source/lib/replace/timegm.c index bd20da703fc..ff90626d442 100644 --- a/source/lib/replace/timegm.c +++ b/source/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 */ |