Browse code

build: support platforms that does not need explicit tun headers

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>

Alon Bar-Lev authored on 2012/06/03 00:31:49
Showing 1 changed files
... ...
@@ -277,6 +277,7 @@ case "$host" in
277 277
 	*-*-darwin*)
278 278
 		AC_DEFINE([TARGET_DARWIN], [1], [Are we running on Mac OS X?])
279 279
 		AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["M"], [Target prefix])
280
+		have_tap_header="yes"
280 281
 		dnl some Mac OS X tendering (we use vararg macros...)
281 282
 		CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
282 283
 		;;
... ...
@@ -293,6 +294,7 @@ case "$host" in
293 293
 		;;
294 294
 	*)
295 295
 		AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["X"], [Target prefix])
296
+		have_tap_header="yes"
296 297
 		;;
297 298
 esac
298 299