From 6cef1f9091629ee71c03017c4653b2e9e31bdfae Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 25 Feb 2016 21:19:44 +0200 Subject: [PATCH] Fix compilation with older versions of libCurl. --- simgear/io/HTTPClient.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5