diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-12 02:04:22 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-12 02:04:22 +0000 |
commit | e8603c5bee7cd95fad4ebddb0eda0228996d7d02 (patch) | |
tree | 778f9e43c28737177860166a1142c2ae16ff8899 /ares__timeval.c | |
parent | 8e4de09b99b7a9aa153367724a5bc7563ed2568a (diff) | |
download | c-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.c | 2 |
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) { |