mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
fix for newer libcurl
Origin commit data
------------------
Branch: ni/coolstream
Commit: e864d6bdd0
Author: GetAway <get-away@t-online.de>
Date: 2023-01-12 (Thu, 12 Jan 2023)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2024,7 +2024,11 @@ bool downloadUrl(std::string url, std::string file, std::string userAgent, unsig
|
||||
CURLcode httpres = curl_easy_perform(curl_handle);
|
||||
|
||||
double dsize;
|
||||
#if CURL_AT_LEAST_VERSION( 7,55,0 )
|
||||
curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD_T, &dsize);
|
||||
#else
|
||||
curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD, &dsize);
|
||||
#endif
|
||||
curl_easy_cleanup(curl_handle);
|
||||
fclose(fp);
|
||||
|
||||
|
Reference in New Issue
Block a user