From bc1a247c42afe51b027cb02acfab7cb1c986ce88 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Fri, 9 Jul 2010 10:24:46 +0200 Subject: [PATCH 1/2] Fix compile problems on NetBSD and OpenBSD - configure will not find due to missing in the test program, and thus, tun.c will fail to compile with missing symbol IFF_MULTICAST. Signed-off-by: Gert Doering --- 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 #endif + #ifdef HAVE_SYS_TYPES_H + # include + #endif ]) AC_CHECK_HEADERS(netinet/ip.h,,, [#ifdef HAVE_SYS_TYPES_H -- 1.7.0.5 From 38e455b18f468b72e0357d49b0284a9372c7d9b2 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Sat, 10 Jul 2010 11:24:41 +0200 Subject: [PATCH 2/2] Fix compile time problems on OpenBSD for good - previous fix fixed NetBSD but not OpenBSD (include *after* ) Signed-off-by: Gert Doering --- configure.ac | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index b91a41c..3fb08ba 100644 --- a/configure.ac +++ b/configure.ac @@ -368,12 +368,12 @@ if test "${WIN32}" != "yes"; then linux/types.h sys/poll.h sys/epoll.h err.h dnl ) AC_CHECK_HEADERS(net/if.h,,, - [#ifdef HAVE_SYS_SOCKET_H - # include - #endif - #ifdef HAVE_SYS_TYPES_H + [#ifdef HAVE_SYS_TYPES_H # include #endif + #ifdef HAVE_SYS_SOCKET_H + # include + #endif ]) AC_CHECK_HEADERS(netinet/ip.h,,, [#ifdef HAVE_SYS_TYPES_H -- 1.7.0.5