summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.c
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2014-04-29 23:09:39 +0200
committerGert Doering <gert@greenie.muc.de>2014-04-30 08:57:07 +0200
commitd08a6a94e14a73b62603500b9a1a89cb9ec5cb2f (patch)
tree77efe5359cbe7829d739feb769831a1bf4cdc9c2 /src/openvpn/options.c
parent7227af1131a5d7ae2ea4d8d1cd3cba3001440326 (diff)
downloadopenvpn-d08a6a94e14a73b62603500b9a1a89cb9ec5cb2f.tar.gz
openvpn-d08a6a94e14a73b62603500b9a1a89cb9ec5cb2f.tar.xz
openvpn-d08a6a94e14a73b62603500b9a1a89cb9ec5cb2f.zip
Conditionalize calls to print_default_gateway on !ENABLE_SMALL
Calls to print_default_gateway() depended on #ifdef ENABLE_DEBUG, but the actual function wasn't compiled in #ifdef ENABLE_SMALL, so the combination "configure --enable-small --enable-debug" didn't work. Fix. Fix trac #397 Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <1398805779-29376-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8670 (cherry picked from commit c29e08a2f33234fb705a8323c0d9e1e07b0773fd)
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r--src/openvpn/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index dcdc200..1c0edbc 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -4147,7 +4147,7 @@ add_option (struct options *options,
read_config_file (options, p[1], level, file, line, msglevel, permission_mask, option_types_found, es);
}
-#ifdef ENABLE_DEBUG
+#if defined(ENABLE_DEBUG) && !defined(ENABLE_SMALL)
else if (streq (p[0], "show-gateway"))
{
struct route_gateway_info rgi;