Signed-off-by: Alan Coopersmith <[email protected]>
---
lib/igt_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 3670652..9944f48 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -267,7 +267,9 @@ static void gettime(struct timespec *ts)
{
memset(ts, 0, sizeof(*ts));
+#ifdef CLOCK_MONOTONIC_COARSE
if (clock_gettime(CLOCK_MONOTONIC_COARSE, ts))
+#endif
clock_gettime(CLOCK_MONOTONIC, ts);
}
--
1.7.9.2
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel