aboutsummaryrefslogtreecommitdiff
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-10-21 11:40:36 +0200
commit22ff667e4e7e412db21d9b1642fc92fa670d323d (patch)
treee58b67a9bf73dcde467cc454b20eaad7d7fd1ede
parentFix multiple configured scripts conflicts issue (version 2) (diff)
downloadopenvpn-22ff667e4e7e412db21d9b1642fc92fa670d323d.tar.xz
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