From fde9e5c02e986dda75dc84a56e5803224bebe6c6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 22 Mar 2016 12:53:18 +0100 Subject: Workaround for CLOCK_MONOTONIC_RAW on old Linux (<2.6.28) --- src/time-accounts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/time-accounts.c') diff --git a/src/time-accounts.c b/src/time-accounts.c index 2ff22d6c..d3e989fa 100644 --- a/src/time-accounts.c +++ b/src/time-accounts.c @@ -40,6 +40,10 @@ #define MAX_ACCOUNTS 256 +#ifndef CLOCK_MONOTONIC_RAW +#define CLOCK_MONOTONIC_RAW (CLOCK_MONOTONIC) +#endif + struct _timeaccounts { enum timeaccount accs[MAX_ACCOUNTS]; -- cgit v1.2.3