diff options
| author | Michael Biebl <biebl@debian.org> | 2018-09-23 10:10:27 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-09-23 10:10:27 +0200 |
| commit | e126f3e804c35480c4f075777430419d6ece23da (patch) | |
| tree | 5d5821ebcda8cd6ac34d2483bb3354910e508930 /src/systemd/sd-adapt/nm-sd-adapt.h | |
| parent | c240974325c552cad177c457d6ff04e381fd77a3 (diff) | |
New upstream version 1.12.4 upstream/1.12.4
Diffstat (limited to 'src/systemd/sd-adapt/nm-sd-adapt.h')
| -rw-r--r-- | src/systemd/sd-adapt/nm-sd-adapt.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/systemd/sd-adapt/nm-sd-adapt.h b/src/systemd/sd-adapt/nm-sd-adapt.h index e163eeda..380cbc60 100644 --- a/src/systemd/sd-adapt/nm-sd-adapt.h +++ b/src/systemd/sd-adapt/nm-sd-adapt.h @@ -26,6 +26,10 @@ #include <sys/resource.h> #include <time.h> +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME 7 +#endif + #if defined(HAVE_DECL_REALLOCARRAY) && HAVE_DECL_REALLOCARRAY == 1 #define HAVE_REALLOCARRAY 1 #else @@ -176,6 +180,15 @@ sd_notify (int unset_environment, const char *state) #define MAX_HANDLE_SZ 128 #endif +/* + * 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" |