From: Daniel Stenberg Date: Wed, 6 Aug 2003 15:26:24 +0000 (+0000) Subject: include "share.h" for the cookie sharing X-Git-Tag: curl-7_10_7~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c704d1545c83950564476a0be66fe5b21326820c;p=thirdparty%2Fcurl.git include "share.h" for the cookie sharing --- diff --git a/lib/http.c b/lib/http.c index e0c5d73e75..277e902663 100644 --- a/lib/http.c +++ b/lib/http.c @@ -92,6 +92,7 @@ #include "http_ntlm.h" #include "http_negotiate.h" #include "url.h" +#include "share.h" #define _MPRINTF_REPLACE /* use our functions only */ #include diff --git a/lib/transfer.c b/lib/transfer.c index c4b1c90faf..8c42cb7d45 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -97,6 +97,7 @@ #include "http_digest.h" #include "http_ntlm.h" #include "http_negotiate.h" +#include "share.h" #define _MPRINTF_REPLACE /* use our functions only */ #include @@ -706,7 +707,8 @@ CURLcode Curl_readwrite(struct connectdata *conn, } else if(data->cookies && checkprefix("Set-Cookie:", k->p)) { - Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE); + Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, + CURL_LOCK_ACCESS_SINGLE); Curl_cookie_add(data->cookies, TRUE, k->p+11, /* If there is a custom-set Host: name, use it here, or else use real peer host name. */