diff options
author | Dan Williams <dcbw@redhat.com> | 2015-05-19 16:02:28 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2015-05-19 16:04:23 -0500 |
commit | aaf6e6b1cf3bfa36991b8372b521b2a8e189eca8 (patch) | |
tree | a3baa355fc5f39109a9a9ffcd2ab5bb3511af076 | |
parent | 928494af2bde1c188943b126c018a9247cd849b1 (diff) | |
download | NetworkManager-aaf6e6b1cf3bfa36991b8372b521b2a8e189eca8.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.
(cherry picked from commit e47eca8761e060402a05d7c0757b40455307ec90)
-rw-r--r-- | src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h b/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h index c316fb4692..6d500f4258 100644 --- a/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h +++ b/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h @@ -96,6 +96,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" |