mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:47:16 +03:00
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.
This commit is contained in:
parent
60dd765b3d
commit
ed80eb5b0f
8 changed files with 196 additions and 110 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue