Skip to content
Snippets Groups Projects
Commit 6791c2cb authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Guard CURLOPT_XFERINFOFUNCTION usage with LIBCURL_VERSION_NUM check

Closes #485
parent f1d41ee7
No related branches found
No related tags found
No related merge requests found
......@@ -615,7 +615,9 @@ static char *feh_http_load_image(char *url)
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, ebuff);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
#if LIBCURL_VERSION_NUM >= 0x072000 /* 07.32.0 */
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, curl_quit_function);
#endif
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
if (opt.insecure_ssl) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment