summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-12-07 15:51:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-12-07 15:51:59 +0000
commit650b95045d0b02e1b53dcad3414d1dfde77f4e6b (patch)
tree7a9a4065c8ab12e8bbf59675a68e725b27615c4e
parent5603134e58a7e0996a42767d0e8acbb20f56b9a8 (diff)
downloadgnurl-650b95045d0b02e1b53dcad3414d1dfde77f4e6b.tar.gz
gnurl-650b95045d0b02e1b53dcad3414d1dfde77f4e6b.tar.bz2
gnurl-650b95045d0b02e1b53dcad3414d1dfde77f4e6b.zip
added gmtime_r check
-rw-r--r--configure.in2
-rw-r--r--lib/http.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 197132c9a..42777b136 100644
--- a/configure.in
+++ b/configure.in
@@ -469,6 +469,8 @@ else
dnl is there a localtime_r()
CURL_CHECK_LOCALTIME_R()
+ AC_CHECK_FUNCS( gmtime_r )
+
fi
dnl **********************************************************************
diff --git a/lib/http.c b/lib/http.c
index 1573f4456..c0b9ce1d3 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -735,7 +735,7 @@ CURLcode Curl_http(struct connectdata *conn)
* equal to UTC (Coordinated Universal Time)." (see page 20 of RFC2616).
*/
-#ifdef HAVE_LOCALTIME_R
+#ifdef HAVE_GMTIME_R
/* thread-safe version */
/* We assume that the presense of localtime_r() proves the presense
of gmtime_r() which is a bit ugly but might work */