mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Check for CLOCK_MONOTONIC_RAW
This should fix irungentoo/ProjectTox-Core#879 (and it's better than irungentoo/ProjectTox-Core#883).
This commit is contained in:
parent
68511f4e3f
commit
184e71ede2
|
@ -234,7 +234,7 @@ uint64_t current_time_monotonic(void)
|
|||
last_monotime = time;
|
||||
#else
|
||||
struct timespec monotime;
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && defined(CLOCK_MONOTONIC_RAW)
|
||||
clock_gettime(CLOCK_MONOTONIC_RAW, &monotime);
|
||||
#elif defined(__APPLE__)
|
||||
clock_serv_t muhclock;
|
||||
|
|
Loading…
Reference in New Issue
Block a user