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