summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-11 08:05:11 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-11 08:08:14 +0100
commit082bea67af9df2390a422a5b2e9d1a042dd95c10 (patch)
tree7c304a251f13fe2a293ef9522ce0da379db58b8a /lib/replace
parent3d280639c4652d6cd35577e333bcd46c2517754c (diff)
downloadsamba-082bea67af9df2390a422a5b2e9d1a042dd95c10.tar.gz
samba-082bea67af9df2390a422a5b2e9d1a042dd95c10.tar.bz2
samba-082bea67af9df2390a422a5b2e9d1a042dd95c10.zip
lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts. metze
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/libreplace_network.m41
-rw-r--r--lib/replace/system/network.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4
index 78fb1abaf0..1dc1c44ed8 100644
--- a/lib/replace/libreplace_network.m4
+++ b/lib/replace/libreplace_network.m4
@@ -16,6 +16,7 @@ AC_CHECK_HEADERS([netinet/ip.h], [], [],[#ifdef HAVE_NETINET_IN_H
#endif])
AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
+AC_CHECK_HEADERS(sys/uio.h)
dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h
index f135d175d4..6add99c0db 100644
--- a/lib/replace/system/network.h
+++ b/lib/replace/system/network.h
@@ -83,6 +83,10 @@
#include <sys/ioctl.h>
#endif
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
+
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif