From 07808052461e9534dc42f7f98e83a7b58565fd13 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Feb 2017 14:03:43 +0100 Subject: [PATCH] Fix building against older curl versions http://hydra.nixos.org/build/49490928 --- src/libstore/download.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index c0cec658c..75c00d85d 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -275,7 +275,10 @@ struct CurlDownloader : public Downloader || httpStatus == 504 || httpStatus == 522 || httpStatus == 524 || code == CURLE_COULDNT_RESOLVE_HOST || code == CURLE_RECV_ERROR - || code == CURLE_HTTP2_STREAM) ? Transient : +#if LIBCURL_VERSION_NUM >= 0x073200 + || code == CURLE_HTTP2_STREAM +#endif + ) ? Transient : Misc; attempt++;