mirror of
https://github.com/curl/curl.git
synced 2026-07-24 00:57:16 +03:00
parent
1e0865b630
commit
2c31dc45b4
1 changed files with 1 additions and 3 deletions
|
|
@ -89,9 +89,6 @@ void curlx_pnow(struct curltime *pnow)
|
|||
** in any case the time starting point does not change once that the
|
||||
** system has started up.
|
||||
*/
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
struct timeval now;
|
||||
#endif
|
||||
struct timespec tsnow;
|
||||
|
||||
/*
|
||||
|
|
@ -135,6 +132,7 @@ void curlx_pnow(struct curltime *pnow)
|
|||
*/
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
else {
|
||||
struct timeval now;
|
||||
(void)gettimeofday(&now, NULL);
|
||||
pnow->tv_sec = now.tv_sec;
|
||||
pnow->tv_usec = (int)now.tv_usec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue