summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-11-07 17:25:43 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-11-07 17:25:43 +0100
commit6791c2cbfaf1d2f3b657616b11e0e4d02312cdfd (patch)
tree7e6c66b23bb45cfc5775e044e7ffe36d7ae0bad9 /src
parentf1d41ee79a9e5abaeadaf1b9ef88a2561eb8d832 (diff)
Guard CURLOPT_XFERINFOFUNCTION usage with LIBCURL_VERSION_NUM check
Closes #485
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c2
1 files changed, 2 insertions, 0 deletions
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);