systemd: fix build with toolchains not exporting CLOCK_BOOTTIME

See 123322c6d6 for the NM-side fix.  We
need this too for the systemd code.
This commit is contained in:
Dan Williams 2015-05-19 16:02:28 -05:00
parent c428935d9f
commit e47eca8761

View file

@ -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"