From 184e71ede2873964b638c9cfef39fcdb005e3a54 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Wed, 28 May 2014 14:34:17 +0200 Subject: Check for CLOCK_MONOTONIC_RAW This should fix irungentoo/ProjectTox-Core#879 (and it's better than irungentoo/ProjectTox-Core#883). --- toxcore/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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; -- cgit v1.2.3