diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-07 17:25:43 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-07 17:25:43 +0100 |
commit | 6791c2cbfaf1d2f3b657616b11e0e4d02312cdfd (patch) | |
tree | 7e6c66b23bb45cfc5775e044e7ffe36d7ae0bad9 | |
parent | f1d41ee79a9e5abaeadaf1b9ef88a2561eb8d832 (diff) |
Guard CURLOPT_XFERINFOFUNCTION usage with LIBCURL_VERSION_NUM check
Closes #485
-rw-r--r-- | src/imlib.c | 2 |
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); |