libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.29k stars 903 forks source link

fix: fallback from curl_multi_poll to curl_multi_wait before curl 7.66 #1055

Closed TontonJambon closed 1 month ago

TontonJambon commented 1 month ago

According to this article, curl_multi_poll is a "drop-in function replacement" to curl_multi_wait that "waits more", and was introduced in 7.66.

Replace call to curl_multi_poll by curl_multi_wait when curl version is less that 7.66.

COM8 commented 1 month ago

You are missing a #include <curl/curlver.h> include.