]> git.mxchange.org Git - simgear.git/commitdiff
Fix compilation with older versions of libCurl.
authorJames Turner <zakalawe@mac.com>
Thu, 25 Feb 2016 19:19:44 +0000 (21:19 +0200)
committerJames Turner <zakalawe@mac.com>
Thu, 25 Feb 2016 19:19:44 +0000 (21:19 +0200)
simgear/io/HTTPClient.cxx

index 3fec10024617b20c726a4c3da4adc13933a59dec..93ad361217325cc71fe62b520cb9c3aedd617161 100644 (file)
@@ -86,7 +86,7 @@ public:
         curlMulti = curl_multi_init();
         // see https://curl.haxx.se/libcurl/c/CURLMOPT_PIPELINING.html
         // we request HTTP 1.1 pipelining
-        curl_multi_setopt(curlMulti, CURLMOPT_PIPELINING, CURLPIPE_HTTP1);
+        curl_multi_setopt(curlMulti, CURLMOPT_PIPELINING, 1 /* aka CURLPIPE_HTTP1 */);
         curl_multi_setopt(curlMulti, CURLMOPT_MAX_TOTAL_CONNECTIONS, (long) maxConnections);
         curl_multi_setopt(curlMulti, CURLMOPT_MAX_PIPELINE_LENGTH,
                           (long) MAX_INFLIGHT_REQUESTS);