[CRIU] [PATCH] zdtm: posix_timers -- Add definition of CLOCK_BOOTTIME
Cyrill Gorcunov
gorcunov at openvz.org
Wed Jun 25 06:21:20 PDT 2014
On PI we've noticed that CLOCK_BOOTTIME might not be defined
in system headers, so ship own one.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/posix_timers.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/zdtm/live/static/posix_timers.c b/test/zdtm/live/static/posix_timers.c
index bc412e4e931e..c6dc55dce5a8 100644
--- a/test/zdtm/live/static/posix_timers.c
+++ b/test/zdtm/live/static/posix_timers.c
@@ -20,6 +20,10 @@ sigset_t mask;
#define MAX_TIMER_DISPLACEMENT 10
#define NO_PERIODIC
+#ifndef CLOCK_BOOTTIME
+# define CLOCK_BOOTTIME 7
+#endif
+
#ifndef NO_PERIODIC
static void realtime_periodic_handler(int sig, siginfo_t *si, void *uc);
static void monotonic_periodic_handler(int sig, siginfo_t *si, void *uc);
--
1.9.3
More information about the CRIU
mailing list