projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5603134
)
added gmtime_r check
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 7 Dec 2001 15:51:59 +0000
(15:51 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 7 Dec 2001 15:51:59 +0000
(15:51 +0000)
configure.in
patch
|
blob
|
history
lib/http.c
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index 197132c9ae696034ec656b3ade334275468a8128..42777b136398e5a9b31e739e94da43464db4a530 100644
(file)
--- 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 1573f445689a7e083ed3fc943285026ca5eea43b..c0b9ce1d3cdf5e9e0f37f4c5e3d020e3968ea2c1 100644
(file)
--- 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_
LOCAL
TIME_R
+#ifdef HAVE_
GM
TIME_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 */