lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Mar 2009 07:05:11 +0000 (08:05 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Mar 2009 07:08:14 +0000 (08:08 +0100)
This should fix the build on some hosts.

metze

lib/replace/libreplace_network.m4
lib/replace/system/network.h

index 78fb1abaf014e247808731cbd7085ac141a50753..1dc1c44ed8e4ec6b4e630109c3e16ec566b76693 100644 (file)
@@ -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
index f135d175d43dcecfc6a2ec7bc92eb5d805528ce3..6add99c0db7cfc13b08e7d21eaa127f2e700d160 100644 (file)
 #include <sys/ioctl.h>
 #endif
 
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
+
 #ifdef HAVE_STROPTS_H
 #include <stropts.h>
 #endif