From 082bea67af9df2390a422a5b2e9d1a042dd95c10 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Mar 2009 08:05:11 +0100 Subject: lib/replace: make sure we include before socket_wrapper.h This should fix the build on some hosts. metze --- lib/replace/libreplace_network.m4 | 1 + lib/replace/system/network.h | 4 ++++ 2 files changed, 5 insertions(+) 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 #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif + #ifdef HAVE_STROPTS_H #include #endif -- cgit