aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorSamuli Seppänen <samuli@openvpn.net>2010-11-12 17:30:07 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-14 12:39:03 +0100
commit5682d3394204c788988b3cf67b3443a717704d2c (patch)
treeb956158e215944aa79bf41357f5998c4a144665b /options.c
parentMake "topology subnet" work on Solaris (ifconfig + route metric changes by Ka... (diff)
downloadopenvpn-5682d3394204c788988b3cf67b3443a717704d2c.tar.xz
Added check for variable CONFIGURE_DEFINES into options.c
The file containing CONFIGURE_DEFINES variable, configure.h, is not present if openvpn is built using the Python + Visual C -based buildsystem. This causes the build to fail. This patch adds a check to see if variable exists before trying to use it. Signed-off-by: Samuli Seppänen <samuli@openvpn.net> Acked-by: Peter Stuge <peter@stuge.se> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.c b/options.c
index 15a1d62..8177732 100644
--- a/options.c
+++ b/options.c
@@ -2763,8 +2763,10 @@ usage_version (void)
#ifdef CONFIGURE_CALL
msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL);
#endif
+#ifdef CONFIGURE_DEFINES
msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
#endif
+#endif
openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */
}