From a587277aa31dcb9dc46e02e165e2c4ebb6e2be1a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Sep 2006 02:03:22 +0000 Subject: r18055: aix needs time.h for timegm.c to compile (This used to be commit 1c91de687f0078100aa9de9111416c9fced45990) --- source4/lib/replace/config.m4 | 1 + source4/lib/replace/timegm.c | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'source4') 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 +#endif + +#ifdef TIME_H +#include +#endif + static int is_leap(unsigned y) { y += 1900; -- cgit