r18055: aix needs time.h for timegm.c to compile
authorAndrew Tridgell <tridge@samba.org>
Tue, 5 Sep 2006 02:03:22 +0000 (02:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:09 +0000 (14:17 -0500)
source/lib/replace/config.m4
source/lib/replace/timegm.c

index 32870df38695117478f9befc0789e7b7aa206d29..0a8e4448b070e89752b71412d873bc52558bba99 100644 (file)
@@ -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)
index 1c9a0e4165eaba18f71c6e7fdb65480b28d48a54..c2746db1a48ed73ba20608e2154945d79d75aa66 100644 (file)
 
 #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;