From 5682d3394204c788988b3cf67b3443a717704d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= Date: Fri, 12 Nov 2010 17:30:07 +0200 Subject: Added check for variable CONFIGURE_DEFINES into options.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Peter Stuge Signed-off-by: David Sommerseth --- options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options.c') diff --git a/options.c b/options.c index 15a1d62..8177732 100644 --- a/options.c +++ b/options.c @@ -2763,7 +2763,9 @@ 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 */ } -- cgit v1.2.3