Add fud for CLOCK_MONOTONIC_RAW, even though (FWIW) it doesn't work on
my system, which is bizarre, but I'm spying a delightful inconsistency
with this constant in the glibc headers and how the value is exported.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
diff --git a/m4/ltp-time.m4 b/m4/ltp-time.m4
index b7461c0..3ff9e62 100644
--- a/m4/ltp-time.m4
+++ b/m4/ltp-time.m4
@@ -26,7 +26,10 @@
dnl ----------------------------
dnl
AC_DEFUN([LTP_CHECK_TIME],[
- AC_CHECK_DECLS([CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE],,,[
+ AC_CHECK_DECLS([CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE],,,[
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <time.h>
])
])