fix compilation error on older systems where CLOCK_MONOTONIC_COARSE is not defined.
This commit is contained in:
parent
4300857586
commit
7cd0a15527
1 changed files with 4 additions and 0 deletions
|
@ -385,6 +385,10 @@ extern int log_debug;
|
|||
} while(0)
|
||||
|
||||
|
||||
#ifndef CLOCK_MONOTONIC_COARSE
|
||||
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
||||
#endif
|
||||
|
||||
static inline int64_t
|
||||
getmonoclock(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue