about summary refs log tree commit diff
path: root/src/libstore/download.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-02-28T13·03+0100
committerEelco Dolstra <edolstra@gmail.com>2017-02-28T13·03+0100
commit07808052461e9534dc42f7f98e83a7b58565fd13 (patch)
tree45ff18523eb4f2af6643226c2217f8063b6e7d93 /src/libstore/download.cc
parentfd86dd93dd44a826235feb0fd82aabcdaa79a65b (diff)
Fix building against older curl versions
http://hydra.nixos.org/build/49490928
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r--src/libstore/download.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index c0cec658cbbf..75c00d85d344 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++;