Skip to content

Commit

Permalink
Include sys/uio.h to fix OpenBSD build problem (closes mobile-shell#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Mar 10, 2013
1 parent 770e420 commit 1bd38e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/network/network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1bd38e6

Please sign in to comment.