mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-30 15:10:36 +00:00
define CLOCK_MONOTONIC to 1 if it is not defined
This commit is contained in:
parent
c8fa04f9b1
commit
09c0a749a1
@ -12,6 +12,12 @@
|
||||
#if ENABLE_MONOTONIC_SYSCALL
|
||||
#include <sys/syscall.h>
|
||||
|
||||
/* Old glibc (< 2.3.4) does not provide this constant. We use syscall
|
||||
* directly so this definition is safe. */
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#endif
|
||||
|
||||
/* libc has incredibly messy way of doing this,
|
||||
* typically requiring -lrt. We just skip all this mess */
|
||||
unsigned long long monotonic_us(void)
|
||||
|
Loading…
Reference in New Issue
Block a user