summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/neon.m42
-rw-r--r--src/ne_socket.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 90494eb..04b9375 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -454,7 +454,7 @@ AC_REQUIRE([AC_PROG_MAKE_SET])
AC_REQUIRE([AC_HEADER_STDC])
-AC_CHECK_HEADERS([errno.h stdarg.h string.h stdlib.h])
+AC_CHECK_HEADERS([errno.h stdarg.h string.h stdlib.h sys/uio.h])
NEON_FORMAT(size_t,,u) dnl size_t is unsigned; use %u formats
NEON_FORMAT(off_t)
diff --git a/src/ne_socket.c b/src/ne_socket.c
index ab23c22..a3058c8 100644
--- a/src/ne_socket.c
+++ b/src/ne_socket.c
@@ -27,6 +27,9 @@
#include "config.h"
#include <sys/types.h>
+#ifdef HAVE_SYS_UIO_h
+#include <sys/uio.h> /* writev(2) */
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif