From: Bart Van Assche Date: Mon, 28 Apr 2008 16:26:49 +0000 (+0000) Subject: Compiles now on systems without definition of CLOCK_MONOTONIC. X-Git-Tag: svn/VALGRIND_3_4_0~670 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d32121acaa0b22831896754f8e314f744b31235;p=thirdparty%2Fvalgrind.git Compiles now on systems without definition of CLOCK_MONOTONIC. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7954 --- diff --git a/memcheck/tests/linux-timerfd-syscall.c b/memcheck/tests/linux-timerfd-syscall.c index 613b56bdfc..dd321364f3 100644 --- a/memcheck/tests/linux-timerfd-syscall.c +++ b/memcheck/tests/linux-timerfd-syscall.c @@ -167,7 +167,9 @@ int main(int ac, char **av) struct itimerspec tmr; struct tmr_type clks[] = { +#if defined(HAVE_CLOCK_MONOTONIC) { CLOCK_MONOTONIC, "CLOCK MONOTONIC" }, +#endif { CLOCK_REALTIME, "CLOCK REALTIME" }, };