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/altsvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/altsvc.c') diff --git a/lib/altsvc.c b/lib/altsvc.c index 164346645..67e75cc6a 100644 --- a/lib/altsvc.c +++ b/lib/altsvc.c @@ -29,7 +29,7 @@ #include #include "urldata.h" #include "altsvc.h" -#include "cookie.h" /* for Curl_get_line() */ +#include "curl_get_line.h" #include "strcase.h" #include "parsedate.h" #include "sendf.h" -- cgit v1.2.3