From: Antonio Quartulli <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
---
src/openvpn/route.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index a1811f41..349b2c76 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -2133,7 +2133,9 @@ delete_route(struct route_ipv4 *r,
struct argv argv = argv_new();
const char *network;
const char *netmask;
+#if !defined(TARGET_LINUX) && !defined(TARGET_ANDROID)
const char *gateway;
+#endif
int is_local_route;
if ((r->flags & (RT_DEFINED|RT_ADDED)) != (RT_DEFINED|RT_ADDED))
@@ -2145,7 +2147,9 @@ delete_route(struct route_ipv4 *r,
network = print_in_addr_t(r->network, 0, &gc);
netmask = print_in_addr_t(r->netmask, 0, &gc);
+#if !defined(TARGET_LINUX) && !defined(TARGET_ANDROID)
gateway = print_in_addr_t(r->gateway, 0, &gc);
+#endif
is_local_route = local_route(r->network, r->netmask, r->gateway, rgi);
if (is_local_route == LR_ERROR)
--
2.13.2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel