From ed80eb5b0f11d70db37e8a3b0406fa906842a962 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 12 May 2008 02:04:21 +0000 Subject: 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. --- src/curlutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/curlutil.c') diff --git a/src/curlutil.c b/src/curlutil.c index a687a9a44..56cfa53c1 100644 --- a/src/curlutil.c +++ b/src/curlutil.c @@ -41,7 +41,7 @@ struct timeval cutil_tvnow(void) return now; } -#elif defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC) +#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC) struct timeval cutil_tvnow(void) { -- cgit v1.2.3