From 060f870b85a6ee85668caeb791935fe98f4da56d Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sat, 30 Mar 2019 19:11:57 +0000 Subject: altsvc: Fix building with cookies disables ALTSVC requires Curl_get_line which is defined in lib/cookie.c inside a #if check of HTTP and COOKIES. That makes Curl_get_line undefined if COOKIES is disabled. Fix by splitting out the function into a separate file which can be included where needed. Closes #3717 Reviewed-by: Daniel Gustafsson Reviewed-by: Marcel Raad --- lib/cookie.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/cookie.h') diff --git a/lib/cookie.h b/lib/cookie.h index 6ac4a6ac0..b2730cfb9 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -101,7 +101,6 @@ struct Cookie *Curl_cookie_getlist(struct CookieInfo *, const char *, void Curl_cookie_freelist(struct Cookie *cookies); void Curl_cookie_clearall(struct CookieInfo *cookies); void Curl_cookie_clearsess(struct CookieInfo *cookies); -char *Curl_get_line(char *buf, int len, FILE *input); #if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_COOKIES) #define Curl_cookie_list(x) NULL -- cgit v1.2.1