This commit is contained in:
Viktor Szakats 2026-06-08 02:23:52 +02:00
parent 6e4aa6600a
commit 3951d0489d
No known key found for this signature in database

View file

@ -942,14 +942,12 @@ static CURLcode socket_connect_result(struct Curl_easy *data,
switch(error) {
case SOCKEINPROGRESS:
case SOCKEWOULDBLOCK:
#ifdef EAGAIN
#if (EAGAIN) != (SOCKEWOULDBLOCK)
#if defined(EAGAIN) && EAGAIN != SOCKEWOULDBLOCK
/* On some platforms EAGAIN and EWOULDBLOCK are the
* same value, and on others they are different, hence
* the odd #if
*/
case EAGAIN:
#endif
#endif
return CURLE_OK;