diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 20332362..bd5f8f56 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -234,7 +234,7 @@ uint64_t current_time_monotonic(void) | |||
234 | last_monotime = time; | 234 | last_monotime = time; |
235 | #else | 235 | #else |
236 | struct timespec monotime; | 236 | struct timespec monotime; |
237 | #if defined(__linux__) | 237 | #if defined(__linux__) && defined(CLOCK_MONOTONIC_RAW) |
238 | clock_gettime(CLOCK_MONOTONIC_RAW, &monotime); | 238 | clock_gettime(CLOCK_MONOTONIC_RAW, &monotime); |
239 | #elif defined(__APPLE__) | 239 | #elif defined(__APPLE__) |
240 | clock_serv_t muhclock; | 240 | clock_serv_t muhclock; |