diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-05 04:58:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:10 -0500 |
commit | 5d363fa0ddcb8d6c6f13e4e975ce260c40780092 (patch) | |
tree | 891f71817b791fabaac2d2c789e88f0656c0ce27 /source4/lib | |
parent | bd35940710efa8cda09a75b273ce19900312997d (diff) | |
download | samba-5d363fa0ddcb8d6c6f13e4e975ce260c40780092.tar.gz samba-5d363fa0ddcb8d6c6f13e4e975ce260c40780092.tar.bz2 samba-5d363fa0ddcb8d6c6f13e4e975ce260c40780092.zip |
r18061: this should fix the libreplace build on us4 with gcc
(This used to be commit 71c0a0731c52458105974e9ad727b7ba403fd992)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/config.m4 | 1 | ||||
-rw-r--r-- | source4/lib/replace/replace.c | 8 |
2 files changed, 9 insertions, 0 deletions
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 <sys/types.h> #include <fcntl.h> +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + +#if HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif + void replace_dummy(void); void replace_dummy(void) {} |