mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
Merge pull request #1722 from bhipple/fix-for-older-libcurl
Fix for builds with system libcurl < 7.30
This commit is contained in:
commit
1ca8e95178
1 changed files with 3 additions and 1 deletions
|
@ -369,11 +369,13 @@ struct CurlDownloader : public Downloader
|
||||||
|
|
||||||
curlm = curl_multi_init();
|
curlm = curl_multi_init();
|
||||||
|
|
||||||
#if LIBCURL_VERSION_NUM >= 0x072b00 // correct?
|
#if LIBCURL_VERSION_NUM >= 0x072b00 // Multiplex requires >= 7.43.0
|
||||||
curl_multi_setopt(curlm, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
|
curl_multi_setopt(curlm, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
|
||||||
#endif
|
#endif
|
||||||
|
#if LIBCURL_VERSION_NUM >= 0x071e00 // Max connections requires >= 7.30.0
|
||||||
curl_multi_setopt(curlm, CURLMOPT_MAX_TOTAL_CONNECTIONS,
|
curl_multi_setopt(curlm, CURLMOPT_MAX_TOTAL_CONNECTIONS,
|
||||||
settings.binaryCachesParallelConnections.get());
|
settings.binaryCachesParallelConnections.get());
|
||||||
|
#endif
|
||||||
|
|
||||||
enableHttp2 = settings.enableHttp2;
|
enableHttp2 = settings.enableHttp2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue