diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-19 14:07:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-19 14:07:36 +0200 |
commit | d15eb7a86831c247c9386512208d5cbb86f9aaba (patch) | |
tree | 61dc62e2ba7b62bb45ca84fdcb32ce4f71d797ec /src/libmdsserver | |
parent | add strict_atoj and strict_atouj (diff) | |
download | mds-d15eb7a86831c247c9386512208d5cbb86f9aaba.tar.gz mds-d15eb7a86831c247c9386512208d5cbb86f9aaba.tar.bz2 mds-d15eb7a86831c247c9386512208d5cbb86f9aaba.tar.xz |
use CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not defined
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libmdsserver')
-rw-r--r-- | src/libmdsserver/macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |