summaryrefslogtreecommitdiff
path: root/libnm-core/nm-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-utils.c')
-rw-r--r--libnm-core/nm-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 4b284cfefd..e5a49d74b1 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -36,6 +36,7 @@
#include "nm-setting-private.h"
#include "crypto.h"
#include "gsystem-local-alloc.h"
+#include "nm-utils-internal.h"
#include "nm-setting-bond.h"
#include "nm-setting-bridge.h"
@@ -46,6 +47,9 @@
#include "nm-setting-wired.h"
#include "nm-setting-wireless.h"
+/* Embed the commit id in the build binary */
+static const char *const __nm_git_sha = STRLEN (NM_GIT_SHA) > 0 ? "NM_GIT_SHA:"NM_GIT_SHA : "";
+
/**
* SECTION:nm-utils
* @short_description: Utility functions
@@ -221,6 +225,8 @@ _nm_utils_init (void)
GModule *self;
gpointer func;
+ (void) __nm_git_sha;
+
if (initialized)
return;
initialized = TRUE;