From 31b18fdd585afb828432f98bb854472c8557a899 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 9 Nov 2015 10:47:28 +0100 Subject: [PATCH] Fixed: Compilation with old libcurl versions --- code/nel/src/gui/group_html.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index f2d3f826b..42d237815 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -2092,7 +2092,10 @@ namespace NLGUI MultiCurl = curl_multi_init(); if (MultiCurl) { +#ifdef CURLMOPT_MAX_HOST_CONNECTIONS + // added in libcurl 7.30.0 curl_multi_setopt(MultiCurl, CURLMOPT_MAX_HOST_CONNECTIONS, options.curlMaxConnections); +#endif curl_multi_setopt(MultiCurl, CURLMOPT_PIPELINING, 1); } RunningCurls = 0;