X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fversion.c;h=325a6f09d8370eeeca958abe0abccc911fa58bf3;hp=fc62c8a399f5d5d64646a7de8a197edf7b493dd1;hb=706d855e507980de3845556989d7de7a3b9c76e8;hpb=aec82bb1c94af6d3142cdef0c51f42f38e9be3e0 diff --git a/src/version.c b/src/version.c index fc62c8a3..325a6f09 100644 --- a/src/version.c +++ b/src/version.c @@ -18,7 +18,14 @@ */ #include "version.h" +#include "version_git.h" +#include "../config.h" /* This file is always rebuilt (even if there are no changes) so that the following is updated */ const char* const BUILD_DATE = __DATE__; const char* const BUILD_TIME = __TIME__; +#ifdef GIT_DESCRIPTION +const char* const BUILD_VERSION = GIT_DESCRIPTION; +#else +const char* const BUILD_VERSION = VERSION; +#endif