From 3514dda407e81586aff955ea563d42b3609fbbfc Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Tue, 2 Feb 2021 12:42:50 +0200 Subject: [PATCH] Fix compilation with curl <7.21.6 used under CentOS 6 According to cURL documentation, the CURLOPT_ACCEPT_ENCODING symbol was called CURLOPT_ENCODING earlier. Closes https://github.com/wxWidgets/wxWidgets/pull/2210 --- src/common/webrequest_curl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/webrequest_curl.cpp b/src/common/webrequest_curl.cpp index e9e2a135f3..e6e47e567c 100644 --- a/src/common/webrequest_curl.cpp +++ b/src/common/webrequest_curl.cpp @@ -37,6 +37,11 @@ #define wxCURL_HAVE_MULTI_WAIT 0 #endif +// The new name was introduced in curl 7.21.6. +#ifndef CURLOPT_ACCEPT_ENCODING + #define CURLOPT_ACCEPT_ENCODING CURLOPT_ENCODING +#endif + // // wxWebResponseCURL //