From d15eb7a86831c247c9386512208d5cbb86f9aaba Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Aug 2015 14:07:36 +0200 Subject: use CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index 41e5567..36e7598 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -40,6 +40,12 @@ /* # pragma GCC diagnostic ignored "-Wpedantic" */ +/* CLOCK_MONOTONIC_RAW is a Linux-specific bug-fix */ +#ifndef CLOCK_MONOTONIC_RAW + #define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC +#endif + + /** * Wrapper around `asprintf` that makes sure that first * argument gets set to `NULL` on error and that zero is -- cgit v1.2.3-70-g09d2