diff options
author | Gert Doering <gert@greenie.muc.de> | 2010-07-09 10:24:46 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-10-21 11:40:36 +0200 |
commit | 22ff667e4e7e412db21d9b1642fc92fa670d323d (patch) | |
tree | e58b67a9bf73dcde467cc454b20eaad7d7fd1ede | |
parent | Fix multiple configured scripts conflicts issue (version 2) (diff) | |
download | openvpn-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.ac | 3 |
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 |