diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-14 15:43:41 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-27 08:55:56 +0200 |
commit | 861b45423d30d21a55f0d8ed09ee6843268746ba (patch) | |
tree | 255bc5a0677b309eac0d6005c4680a61e126c72f | |
parent | a0eb1f9c0c7dbbe12fb2e3ca563a17af956ea5d6 (diff) | |
download | curl-861b45423d30d21a55f0d8ed09ee6843268746ba.tar.gz |
curl_get_line: build if cookies or alt-svc are enabled
-rw-r--r-- | lib/curl_get_line.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl_get_line.c b/lib/curl_get_line.c index c4194851a..180ee2ba5 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) && !(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 */ |