aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-12 02:04:21 +0000
committerYang Tse <yangsita@gmail.com>2008-05-12 02:04:21 +0000
commited80eb5b0f11d70db37e8a3b0406fa906842a962 (patch)
tree1be50fd602da20c0ba422ba1ef86a45a7cdc4f39 /tests
parent60dd765b3dd73bd957bff42a990ba391c843a9ff (diff)
configure script will now define HAVE_CLOCK_GETTIME_MONOTONIC symbol only
when function clock_gettime() is available and the monotonic timer is also available. Otherwise, in some cases, librt or libposix4 could be used for linking even when finally not using the clock_gettime() function due to lack of the monotonic clock.
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/testutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/testutil.c b/tests/libtest/testutil.c
index df90cdccb..435b30e09 100644
--- a/tests/libtest/testutil.c
+++ b/tests/libtest/testutil.c
@@ -41,7 +41,7 @@ struct timeval tutil_tvnow(void)
return now;
}
-#elif defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
+#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC)
struct timeval tutil_tvnow(void)
{