summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-04 15:04:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-04 15:05:23 +0100
commitbe6ecb3a0726212cd7b746a0f183473673eb6936 (patch)
tree9d03611f84d2f8651efc712320ffa047f01ce08b
parent20faeee6f36b5fcdf20b6c4684cc9dc4a62381a4 (diff)
downloadcurl-bagder/no-http-mqtt.tar.gz
urldata: fix build without HTTP and MQTTbagder/no-http-mqtt
Reported-by: Joseph Chen Fixes #6562 Closes #6563
-rw-r--r--lib/setopt.c3
-rw-r--r--lib/urldata.h4
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index ce73a34a7..d4a081681 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -653,8 +653,6 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
data->set.httpauth = CURLAUTH_AWS_SIGV4;
break;
-#endif /* CURL_DISABLE_HTTP */
-
case CURLOPT_MIMEPOST:
/*
* Set to make us do MIME/form POST
@@ -695,7 +693,6 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
data->set.headers = va_arg(param, struct curl_slist *);
break;
-#ifndef CURL_DISABLE_HTTP
#ifndef CURL_DISABLE_PROXY
case CURLOPT_PROXYHEADER:
/*
diff --git a/lib/urldata.h b/lib/urldata.h
index f7d60b249..09a78d922 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1400,9 +1400,7 @@ struct UrlState {
int stream_weight;
CURLU *uh; /* URL handle for the current parsed URL */
struct urlpieces up;
-#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MQTT)
Curl_HttpReq httpreq; /* what kind of HTTP request (if any) is this */
-#endif
#ifndef CURL_DISABLE_HTTP
size_t trailers_bytes_sent;
struct dynbuf trailers_buf; /* a buffer containing the compiled trailing
@@ -1708,9 +1706,7 @@ struct UserDefined {
curl_TimeCond timecondition; /* kind of time/date comparison */
curl_proxytype proxytype; /* what kind of proxy that is in use */
time_t timevalue; /* what time to compare with */
-#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MQTT)
Curl_HttpReq method; /* what kind of HTTP request (if any) is this */
-#endif
long httpversion; /* when non-zero, a specific HTTP version requested to
be used in the library's request(s) */
struct ssl_config_data ssl; /* user defined SSL stuff */