aboutsummaryrefslogtreecommitdiff
path: root/lib/altsvc.c
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@sunpoet.net>2019-03-30 19:11:57 +0000
committerDaniel Gustafsson <daniel@yesql.se>2019-04-20 22:46:21 +0200
commit060f870b85a6ee85668caeb791935fe98f4da56d (patch)
tree33b415746b521af99f3b7433e412ba873b74b358 /lib/altsvc.c
parente04e974aed6b1187ec3bc7a6552a3d86cd4611cf (diff)
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 <daniel@yesql.se> Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
Diffstat (limited to 'lib/altsvc.c')
-rw-r--r--lib/altsvc.c2
1 files changed, 1 insertions, 1 deletions
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 <curl/curl.h>
#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"