mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Fixed: Compilation with old libcurl versions
This commit is contained in:
parent
826b729411
commit
d4d12f2c81
1 changed files with 3 additions and 0 deletions
|
@ -2092,7 +2092,10 @@ namespace NLGUI
|
||||||
MultiCurl = curl_multi_init();
|
MultiCurl = curl_multi_init();
|
||||||
if (MultiCurl)
|
if (MultiCurl)
|
||||||
{
|
{
|
||||||
|
#ifdef CURLMOPT_MAX_HOST_CONNECTIONS
|
||||||
|
// added in libcurl 7.30.0
|
||||||
curl_multi_setopt(MultiCurl, CURLMOPT_MAX_HOST_CONNECTIONS, options.curlMaxConnections);
|
curl_multi_setopt(MultiCurl, CURLMOPT_MAX_HOST_CONNECTIONS, options.curlMaxConnections);
|
||||||
|
#endif
|
||||||
curl_multi_setopt(MultiCurl, CURLMOPT_PIPELINING, 1);
|
curl_multi_setopt(MultiCurl, CURLMOPT_PIPELINING, 1);
|
||||||
}
|
}
|
||||||
RunningCurls = 0;
|
RunningCurls = 0;
|
||||||
|
|
Loading…
Reference in a new issue