Permalink
Browse files

Include sys/uio.h to fix OpenBSD build problem (closes #391)

  • Loading branch information...
1 parent 770e420 commit 1bd38e6dabf99ef6b29c4e2c2b15cffb59ea6c07 @keithw keithw committed Mar 10, 2013
Showing with 4 additions and 0 deletions.
  1. +1 −0 configure.ac
  2. +3 −0 src/network/network.cc
View
@@ -176,6 +176,7 @@ AC_CHECK_HEADERS([pty.h util.h libutil.h paths.h])
AC_CHECK_HEADERS([endian.h sys/endian.h])
AC_CHECK_HEADERS([utmpx.h])
AC_CHECK_HEADERS([termio.h])
+AC_CHECK_HEADERS([sys/uio.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
View
@@ -34,6 +34,9 @@
#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>

0 comments on commit 1bd38e6

Please sign in to comment.