]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added check for variable CONFIGURE_DEFINES into options.c
authorSamuli Seppänen <samuli@openvpn.net>
Fri, 12 Nov 2010 15:30:07 +0000 (17:30 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Sun, 14 Nov 2010 11:39:03 +0000 (12:39 +0100)
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>
options.c

index 15a1d62b16b0720e7ee8b175410a4b4f512ccac7..8177732d4a0170eaa2a901d68da46fe23a238c53 100644 (file)
--- 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 */
 }