From: Willem Jan Withagen Date: Fri, 29 Jul 2016 18:29:28 +0000 (+0200) Subject: src/include/compat.h:define CLOCK_REALTIME_COARSE if not available X-Git-Tag: v11.0.1~134^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12b51f440899045bd10c7097816378eaf47b721a;p=ceph.git src/include/compat.h:define CLOCK_REALTIME_COARSE if not available Signed-off-by: Willem Jan Withagen --- diff --git a/src/include/compat.h b/src/include/compat.h index 2035000b1eb3..b0ea3b98c85a 100644 --- a/src/include/compat.h +++ b/src/include/compat.h @@ -59,6 +59,13 @@ #define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC #endif #endif +#if !defined(CLOCK_REALTIME_COARSE) +#if defined(CLOCK_REALTIME_FAST) +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST +#else +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME +#endif +#endif /* And include the extra required include file */ #include