summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2010-07-09 10:24:46 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-08-17 20:56:47 +0200
commiteb973e055bc249948351cacf1aa045d878ed041d (patch)
tree611a830f8dbf38b27e029516261f982750d1bb15
parentce722dc52bc062eb6e07f09133760579fd52f8dd (diff)
downloadopenvpn-eb973e055bc249948351cacf1aa045d878ed041d.tar.gz
openvpn-eb973e055bc249948351cacf1aa045d878ed041d.tar.xz
openvpn-eb973e055bc249948351cacf1aa045d878ed041d.zip
Fix compile problems on NetBSD and OpenBSD
Configure will not find <net/if.h> due to missing <sys/types.h> in the test program, and thus, tun.c will fail to compile with missing symbol IFF_MULTICAST. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: krzee <jeff@doeshosting.com> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4626e46..b91a41c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -371,6 +371,9 @@ if test "${WIN32}" != "yes"; then
[#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
+ #ifdef HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ #endif
])
AC_CHECK_HEADERS(netinet/ip.h,,,
[#ifdef HAVE_SYS_TYPES_H