]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/include/compat.h:define CLOCK_REALTIME_COARSE if not available
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 29 Jul 2016 18:29:28 +0000 (20:29 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 29 Jul 2016 18:29:28 +0000 (20:29 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/include/compat.h

index 2035000b1eb34967a5effd32ffb8c894fedbf609..b0ea3b98c85aaf89f1fc9fca662d88e9b74f9221 100644 (file)
 #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 <pthread_np.h>