Define CLOCK_MONOTONIC_RAW where it is not present

This fixes compilation on Debian GNU/kFreeBSD
This commit is contained in:
Balint Reczey
2013-10-20 17:16:16 +02:00
parent 27a4e3a7ad
commit 5fb86ae178

View File

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