From 3db71d95f67d800d3990d2865b0ba021c3bcaba9 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 8 Nov 2012 13:31:23 +0000 Subject: [PATCH] Include version.c from build dir in preference to source dir This should fix out-of-source-tree builds from a tarball, which otherwise would use the autogenerated $(objdir)/version.c for building the library, but the pre-packaged $(srcdir)/version.c for the executable. This is because the latter was included directly from main.c by #include "version.c". By changing to #include instead, we get to use the new auto-generated one instead if anything's been changed. Signed-off-by: David Woodhouse --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 40da6519..258932fb 100644 --- a/main.c +++ b/main.c @@ -72,7 +72,7 @@ static void init_stoken(struct openconnect_info *vpninfo, /* A sanity check that the openconnect executable is running against a library of the same version */ #define openconnect_version_str openconnect_binary_version -#include "version.c" +#include #undef openconnect_version_str int verbose = PRG_INFO; -- 2.49.0