diff options
author | Thomas White <taw@physics.org> | 2016-03-22 12:53:18 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-03-22 12:53:18 +0100 |
commit | fde9e5c02e986dda75dc84a56e5803224bebe6c6 (patch) | |
tree | 58b0de536e29b39d96361eb279bd636da811d10a /src/time-accounts.c | |
parent | 90ff333fceae7636dfa121f7a7976c9e6a82272b (diff) |
Workaround for CLOCK_MONOTONIC_RAW on old Linux (<2.6.28)
Diffstat (limited to 'src/time-accounts.c')
-rw-r--r-- | src/time-accounts.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]; |