From 5fb86ae1782dabafa1dafc0fffcf138e1dff453e Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Sun, 20 Oct 2013 17:16:16 +0200 Subject: [PATCH] Define CLOCK_MONOTONIC_RAW where it is not present This fixes compilation on Debian GNU/kFreeBSD --- src/libfaketime.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libfaketime.c b/src/libfaketime.c index 18809a2..2353813 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -83,6 +83,12 @@ typedef int clockid_t; #endif #endif +/* some systems lack raw clock */ +#ifndef CLOCK_MONOTONIC_RAW +#define CLOCK_MONOTONIC_RAW 4 +#endif + + /* * Per thread variable, which we turn on inside real_* calls to avoid modifying * time multiple times