From: James Turner Date: Thu, 25 Feb 2016 19:19:44 +0000 (+0200) Subject: Fix compilation with older versions of libCurl. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cef1f9091629ee71c03017c4653b2e9e31bdfae;p=simgear.git Fix compilation with older versions of libCurl. --- diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index 3fec1002..93ad3612 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -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);