mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'Ansa89-CLOCK_MONOTONIC_RAW-fix2'
This commit is contained in:
commit
e9d8eddf26
|
@ -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