diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/replace/config.m4 | 1 | ||||
-rw-r--r-- | source4/lib/replace/timegm.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index 32870df386..0a8e4448b0 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -50,6 +50,7 @@ AC_TRY_COMPILE([ [AC_DEFINE(socklen_t, int,[Socket length type])]) AC_CHECK_HEADERS(sys/syslog.h syslog.h) +AC_CHECK_HEADERS(sys/time.h time.h) AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror) AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename) AC_CHECK_FUNCS(waitpid strlcpy strlcat innetgr initgroups memmove strdup) 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; |