Skip to content

Commit

Permalink
Fix building against older curl versions
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 28, 2017
1 parent fd86dd9 commit 0780805
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstore/download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 0780805

Please sign in to comment.