summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2012-11-08 13:31:23 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-11-08 13:31:25 +0000
commit3db71d95f67d800d3990d2865b0ba021c3bcaba9 (patch)
treeab183e59b39d288ab85219d94920e69aa400c782
parentfa5760aa677ddeb7f0f8f26d37c3a72e578c8186 (diff)
downloadopenconnect-3db71d95f67d800d3990d2865b0ba021c3bcaba9.tar.gz
openconnect-3db71d95f67d800d3990d2865b0ba021c3bcaba9.tar.bz2
openconnect-3db71d95f67d800d3990d2865b0ba021c3bcaba9.zip
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 <main.c> instead, we get to use the new auto-generated one instead if anything's been changed. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 40da651..258932f 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 <version.c>
#undef openconnect_version_str
int verbose = PRG_INFO;