Commit 5dbe4b64 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

fix: Compilation on RedHat 7

Guard CURLOPT_UPLOAD_BUFFERSIZE with preprocessor checks
parent 11ffc9ca
Pipeline #75495 passed with stages
in 12 minutes and 39 seconds
......@@ -559,12 +559,14 @@ namespace seismicdrive
// ---------------------------------------------------------------------------
#if LIBCURL_VERSION_NUM >= 0x073e00
ccode = _libcurl->curl_easy_setopt(_curl, CURLOPT_UPLOAD_BUFFERSIZE, 2 * 1024 * 1024);
if (ccode != CURLE_OK)
{
make_error(http, ccode, "HTTPRequest::init, setting the verbose output");
return;
}
#endif
// set the verbose output
ccode = _libcurl->curl_easy_setopt(_curl, CURLOPT_VERBOSE, _verbose_output);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment