summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-14 15:43:41 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-26 22:56:26 +0200
commitce88e21c724d5a45a2c8c295734f65f75cf4ea79 (patch)
tree0fecd9b01479f15353ea025dd870921813534c1c
parent01e2679b4972e4cd15290d0e1b05cd0988cb5b5e (diff)
downloadcurl-ce88e21c724d5a45a2c8c295734f65f75cf4ea79.tar.gz
curl_get_line: build only if cookies or alt-svc are enabled
Closes #5851
-rw-r--r--lib/curl_get_line.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl_get_line.c b/lib/curl_get_line.c
index c4194851a..3c77be9a9 100644
--- a/lib/curl_get_line.c
+++ b/lib/curl_get_line.c
@@ -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 */