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:02:28 -0500 |
commit | e47eca8761e060402a05d7c0757b40455307ec90 (patch) | |
tree | 292122ef81004ac5adea2c5d7215cfc565dd56e9 /src | |
parent | c428935d9f4219f82a0eb1b57792325d287acf78 (diff) | |
download | NetworkManager-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.h | 9 |
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" |