[packages] add openvpn-polarssl, experimental small OpenVPN Git build using PolarSSL...
[openwrt/svn-archive/archive.git] / net / openvpn-polarssl / patches / 400-fix-undefined-print_default.gateway.patch
1 --- a/init.c
2 +++ b/init.c
3 @@ -696,6 +696,7 @@ init_static (void)
4 #endif
5
6 #ifdef TEST_GET_DEFAULT_GATEWAY
7 +#ifdef ENABLE_DEBUG
8 {
9 struct route_gateway_info rgi;
10 get_default_gateway(&rgi);
11 @@ -703,6 +704,7 @@ init_static (void)
12 return false;
13 }
14 #endif
15 +#endif
16
17 #ifdef GEN_PATH_TEST
18 {
19 --- a/options.c
20 +++ b/options.c
21 @@ -3859,6 +3859,7 @@ add_option (struct options *options,
22
23 read_config_file (options, p[1], level, file, line, msglevel, permission_mask, option_types_found, es);
24 }
25 +#ifdef ENABLE_DEBUG
26 else if (streq (p[0], "show-gateway"))
27 {
28 struct route_gateway_info rgi;
29 @@ -3867,6 +3868,7 @@ add_option (struct options *options,
30 print_default_gateway(M_INFO, &rgi);
31 openvpn_exit (OPENVPN_EXIT_STATUS_GOOD); /* exit point */
32 }
33 +#endif
34 #if 0
35 else if (streq (p[0], "foreign-option") && p[1])
36 {