summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2015-05-19 16:02:28 -0500
committerDan Williams <dcbw@redhat.com>2015-05-19 16:02:28 -0500
commite47eca8761e060402a05d7c0757b40455307ec90 (patch)
tree292122ef81004ac5adea2c5d7215cfc565dd56e9 /src
parentc428935d9f4219f82a0eb1b57792325d287acf78 (diff)
downloadNetworkManager-e47eca8761e060402a05d7c0757b40455307ec90.tar.gz
systemd: fix build with toolchains not exporting CLOCK_BOOTTIME
See 123322c6d61b8db9e8e7a627c80d8d4df43a5c8d for the NM-side fix. We need this too for the systemd code.
Diffstat (limited to 'src')
-rw-r--r--src/systemd/nm-sd-adapt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h
index 845f7fba86..049b535c40 100644
--- a/src/systemd/nm-sd-adapt.h
+++ b/src/systemd/nm-sd-adapt.h
@@ -100,6 +100,15 @@ G_STMT_START { \
#define noreturn G_GNUC_NORETURN
+/*
+ * Some toolchains (E.G. uClibc 0.9.33 and earlier) don't export
+ * CLOCK_BOOTTIME even though the kernel supports it, so provide a
+ * local definition
+ */
+#ifndef CLOCK_BOOTTIME
+#define CLOCK_BOOTTIME 7
+#endif
+
#include "sd-id128.h"
#include "sparse-endian.h"
#include "async.h"