]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Compiles now on systems without definition of CLOCK_MONOTONIC.
authorBart Van Assche <bvanassche@acm.org>
Mon, 28 Apr 2008 16:26:49 +0000 (16:26 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 28 Apr 2008 16:26:49 +0000 (16:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7954

memcheck/tests/linux-timerfd-syscall.c

index 613b56bdfc5043d6706ad3a9e020f84eb0c77059..dd321364f3d6dbc04c849285449def474ccf1111 100644 (file)
@@ -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" },
   };