Fix building against older curl versions
http://hydra.nixos.org/build/49490928
This commit is contained in:
		
							parent
							
								
									fd86dd93dd
								
							
						
					
					
						commit
						0780805246
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -275,7 +275,10 @@ struct CurlDownloader : public Downloader
 | 
				
			||||||
                        || httpStatus == 504  || httpStatus == 522 || httpStatus == 524
 | 
					                        || httpStatus == 504  || httpStatus == 522 || httpStatus == 524
 | 
				
			||||||
                        || code == CURLE_COULDNT_RESOLVE_HOST
 | 
					                        || code == CURLE_COULDNT_RESOLVE_HOST
 | 
				
			||||||
                        || code == CURLE_RECV_ERROR
 | 
					                        || code == CURLE_RECV_ERROR
 | 
				
			||||||
                        || code == CURLE_HTTP2_STREAM) ? Transient :
 | 
					#if LIBCURL_VERSION_NUM >= 0x073200
 | 
				
			||||||
 | 
					                        || code == CURLE_HTTP2_STREAM
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					                        ) ? Transient :
 | 
				
			||||||
                    Misc;
 | 
					                    Misc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                attempt++;
 | 
					                attempt++;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue