]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_get_line: build only if cookies or alt-svc are enabled
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Aug 2020 13:43:41 +0000 (15:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Aug 2020 20:56:26 +0000 (22:56 +0200)
Closes #5851

lib/curl_get_line.c

index c4194851ae09326e38e05f77e19147a744fb6389..3c77be9a95bf369b9592490571c18628608e5162 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -22,6 +22,8 @@
 
 #include "curl_setup.h"
 
+#if !defined(CURL_DISABLE_COOKIES) && !defined(CURL_DISABLE_ALTSVC)
+
 #include "curl_get_line.h"
 #include "curl_memory.h"
 /* The last #include file should be: */
@@ -53,3 +55,5 @@ char *Curl_get_line(char *buf, int len, FILE *input)
   }
   return NULL;
 }
+
+#endif /* if not disabled */