summaryrefslogtreecommitdiff
path: root/ares__timeval.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-12 02:04:22 +0000
committerYang Tse <yangsita@gmail.com>2008-05-12 02:04:22 +0000
commite8603c5bee7cd95fad4ebddb0eda0228996d7d02 (patch)
tree778f9e43c28737177860166a1142c2ae16ff8899 /ares__timeval.c
parent8e4de09b99b7a9aa153367724a5bc7563ed2568a (diff)
downloadc-ares-e8603c5bee7cd95fad4ebddb0eda0228996d7d02.tar.gz
c-ares-e8603c5bee7cd95fad4ebddb0eda0228996d7d02.tar.bz2
c-ares-e8603c5bee7cd95fad4ebddb0eda0228996d7d02.zip
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 'ares__timeval.c')
-rw-r--r--ares__timeval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares__timeval.c b/ares__timeval.c
index 2fbf168..6de6c65 100644
--- a/ares__timeval.c
+++ b/ares__timeval.c
@@ -33,7 +33,7 @@ struct timeval ares__tvnow(void)
return now;
}
-#elif defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
+#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC)
struct timeval ares__tvnow(void)
{