]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SMP: Use sys/uio.h for struct iovec
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 8 Jul 2010 06:28:49 +0000 (00:28 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 8 Jul 2010 06:28:49 +0000 (00:28 -0600)
configure.in
src/ipc/TypedMsgHdr.h

index 788ddcce736b106f252ce52df880d8ce7f805ef3..ae8e88528420da90b0f2dcae60f5892d27874965 100644 (file)
@@ -2239,6 +2239,7 @@ AC_CHECK_HEADERS( \
        sys/syscall.h \
        sys/time.h \
        sys/types.h \
+       sys/uio.h \
        sys/un.h \
        sys/vfs.h \
        sys/wait.h \
index 513cd89127e31263ef1a75c23c0a4961f91029bb..79b60ab5e8008de77ca3463773b6ec0e46039a31 100644 (file)
@@ -9,8 +9,13 @@
 #define SQUID_IPC_TYPED_MSG_HDR_H
 
 #include "config.h"
-#include <sys/types.h>
+
+#if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#if HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
 #if HAVE_SYS_UN_H
 #include <sys/un.h>
 #endif