From b46aad6df449445a9fc4aa7b32bd40005438e3f7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:18:05 +0200 Subject: Adding upstream version 2.9.5. Signed-off-by: Daniel Baumann --- src/version.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/version.c (limited to 'src/version.c') diff --git a/src/version.c b/src/version.c new file mode 100644 index 0000000..e7bb748 --- /dev/null +++ b/src/version.c @@ -0,0 +1,28 @@ +/* + * Version reporting : all user-visible version information should come from + * this file so that rebuilding only this one is enough to report the latest + * code version. + */ + +#include +#include + +/* These ones are made variables and not constants so that they are stored into + * the data region and prominently appear in core files. + */ +char haproxy_version_here[] = "HAProxy version follows"; +char haproxy_version[] = HAPROXY_VERSION; +char haproxy_date[] = HAPROXY_DATE; +char stats_version_string[] = STATS_VERSION_STRING; + +#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) +#define SANITIZE_STRING " with address sanitizer" +#else +#define SANITIZE_STRING "" +#endif + +#if defined(__clang_version__) +REGISTER_BUILD_OPTS("Built with clang compiler version " __clang_version__ "" SANITIZE_STRING); +#elif defined(__VERSION__) +REGISTER_BUILD_OPTS("Built with gcc compiler version " __VERSION__ "" SANITIZE_STRING); +#endif -- cgit v1.2.3