mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
added gmtime_r check
This commit is contained in:
parent
5603134e58
commit
650b95045d
@ -469,6 +469,8 @@ else
|
|||||||
dnl is there a localtime_r()
|
dnl is there a localtime_r()
|
||||||
CURL_CHECK_LOCALTIME_R()
|
CURL_CHECK_LOCALTIME_R()
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS( gmtime_r )
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl **********************************************************************
|
dnl **********************************************************************
|
||||||
|
@ -735,7 +735,7 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||||||
* equal to UTC (Coordinated Universal Time)." (see page 20 of RFC2616).
|
* equal to UTC (Coordinated Universal Time)." (see page 20 of RFC2616).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_GMTIME_R
|
||||||
/* thread-safe version */
|
/* thread-safe version */
|
||||||
/* We assume that the presense of localtime_r() proves the presense
|
/* We assume that the presense of localtime_r() proves the presense
|
||||||
of gmtime_r() which is a bit ugly but might work */
|
of gmtime_r() which is a bit ugly but might work */
|
||||||
|
Loading…
Reference in New Issue
Block a user