From 5d363fa0ddcb8d6c6f13e4e975ce260c40780092 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Sep 2006 04:58:23 +0000 Subject: r18061: this should fix the libreplace build on us4 with gcc (This used to be commit 71c0a0731c52458105974e9ad727b7ba403fd992) --- source4/lib/replace/config.m4 | 1 + source4/lib/replace/replace.c | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index 994cd24866..53eda9e8ed 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -51,6 +51,7 @@ AC_TRY_COMPILE([ AC_CHECK_HEADERS(sys/syslog.h syslog.h) AC_CHECK_HEADERS(sys/time.h time.h) +AC_CHECK_HEADERS(sys/socket.h netinet/in.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/replace.c b/source4/lib/replace/replace.c index b1154fb7a2..b9c106d582 100644 --- a/source4/lib/replace/replace.c +++ b/source4/lib/replace/replace.c @@ -31,6 +31,14 @@ #include #include +#if HAVE_SYS_SOCKET_H +#include +#endif + +#if HAVE_NETINET_IN_H +#include +#endif + void replace_dummy(void); void replace_dummy(void) {} -- cgit