]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix a Visual Studio 2008 build error in tun.c
authorSamuli Seppanen <samuli@openvpn.net>
Thu, 26 May 2011 13:23:04 +0000 (16:23 +0300)
committerDavid Sommerseth <davids@redhat.com>
Thu, 25 Aug 2011 18:12:37 +0000 (20:12 +0200)
Partially fixes ticket #137

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Tested-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
tun.c

diff --git a/tun.c b/tun.c
index 1d3f8bca4b34d384c3c5e6051bfaeb7ecf9c2cc7..3938c25e710594aebdbb7c3fae3180e761adf5ff 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -575,7 +575,7 @@ init_tun_post (struct tuntap *tt,
 #endif
 }
 
-#if defined(TARGET_WIN32) || \
+#if defined(WIN32) || \
     defined(TARGET_DARWIN) || defined(TARGET_NETBSD) || defined(TARGET_OPENBSD)
 
 /* some of the platforms will auto-add a "network route" pointing