From 6791c2cbfaf1d2f3b657616b11e0e4d02312cdfd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 Nov 2019 17:25:43 +0100 Subject: Guard CURLOPT_XFERINFOFUNCTION usage with LIBCURL_VERSION_NUM check Closes #485 --- src/imlib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index 4d2f2fa..13fd1df 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -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); -- cgit v1.2.3