Skip to content
Snippets Groups Projects
Verified Commit ab7e5b31 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix compilation error on windows

parent e741ced9
No related branches found
No related tags found
No related merge requests found
Pipeline #1576 failed
......@@ -226,7 +226,7 @@ Request &Request::connection_timeout(long t) {
#elif defined(TCP_MAXRT)
curl_easy_setopt(this->easy, CURLOPT_SOCKOPTFUNCTION, [](void *clientp, curl_socket_t sock, curlsocktype) -> int {
unsigned int maxrt = static_cast<Request *>(clientp)->connection_timeout_ /*s*/;
setsockopt(sock, IPPROTO_TCP, TCP_MAXRT, &maxrt, sizeof(maxrt));
setsockopt(sock, IPPROTO_TCP, TCP_MAXRT, (const char *)&maxrt, sizeof(maxrt));
return CURLE_OK;
});
curl_easy_setopt(this->easy, CURLOPT_SOCKOPTDATA, this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment