diff --git a/src/sigar_version.c.in b/src/sigar_version.c.in new file mode 100644 index 00000000..f10edeae --- /dev/null +++ b/src/sigar_version.c.in @@ -0,0 +1,15 @@ +#include "sigar.h" + +static sigar_version_t sigar_version = { + "@@BUILD_DATE@@", + "@@VERSION_STRING@@", + "@@ARCHNAME@@", + @@VERSION_MAJOR@@, + @@VERSION_MINOR@@, + @@VERSION_MAINT@@ +}; + +SIGAR_DECLARE(sigar_version_t *) sigar_version_get(void) +{ + return &sigar_version; +}