From 61948913c576b4bf62e33561be06beeec134db47 Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Fri, 13 Nov 2015 17:03:51 +0100 Subject: [PATCH] build: add backward compatibility define for missing CLOCK_BOOTTIME [thaller@redhat.com: modified original patch] https://bugzilla.gnome.org/show_bug.cgi?id=757911 --- src/systemd/nm-sd-adapt.h | 5 +++++ src/tests/test-general-with-expect.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/systemd/nm-sd-adapt.h b/src/systemd/nm-sd-adapt.h index a6123d1fe6..967cb48fac 100644 --- a/src/systemd/nm-sd-adapt.h +++ b/src/systemd/nm-sd-adapt.h @@ -24,11 +24,16 @@ #include #include #include +#include #include "nm-default.h" #define noreturn G_GNUC_NORETURN +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME 7 +#endif + /*****************************************************************************/ static inline NMLogLevel diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c index 4bd8954947..c6abdccf86 100644 --- a/src/tests/test-general-with-expect.c +++ b/src/tests/test-general-with-expect.c @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -32,6 +33,10 @@ #include "nm-test-utils.h" +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME 7 +#endif + /*******************************************/ static void