]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: fix build without HTTP and MQTT
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Feb 2021 14:04:18 +0000 (15:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Feb 2021 22:08:07 +0000 (23:08 +0100)
Reported-by: Joseph Chen
Fixes #6562
Closes #6563

lib/setopt.c
lib/urldata.h

index ce73a34a7fc46745366b35e58a92db129329c712..d4a08168196d31e63364de41e7bef5d599bdc620 100644 (file)
@@ -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:
     /*
index f7d60b249bb19f040b297aafe144384fc276c5c1..09a78d9224264c3c1e2ec789894524905150ad4f 100644 (file)
@@ -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 */