]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
build: support platforms that does not need explicit tun headers
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sat, 2 Jun 2012 15:31:49 +0000 (18:31 +0300)
committerDavid Sommerseth <davids@redhat.com>
Mon, 4 Jun 2012 11:28:31 +0000 (13:28 +0200)
Both "generic" and Darwin have no special headers to use tap.

Fixes commit 7cacdfd4b7.

Reported-by: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1338651109-15806-1-git-send-email-alon.barlev@gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6659
Signed-off-by: David Sommerseth <davids@redhat.com>
configure.ac

index 913ace63e625d25a291061841e497e5a840ecda7..f770920d5f89fa275abaddf3bf6ccb6edc71bd9b 100644 (file)
@@ -277,6 +277,7 @@ case "$host" in
        *-*-darwin*)
                AC_DEFINE([TARGET_DARWIN], [1], [Are we running on Mac OS X?])
                AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["M"], [Target prefix])
+               have_tap_header="yes"
                dnl some Mac OS X tendering (we use vararg macros...)
                CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
                ;;
@@ -293,6 +294,7 @@ case "$host" in
                ;;
        *)
                AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["X"], [Target prefix])
+               have_tap_header="yes"
                ;;
 esac