mirror of
https://github.com/curl/curl.git
synced 2026-06-22 21:25:43 +03:00
rely more on EWOULDBLOCK
This commit is contained in:
parent
7bb5a096e9
commit
fb0d07ec8c
1 changed files with 4 additions and 4 deletions
|
|
@ -1138,11 +1138,11 @@ typedef unsigned int curl_bit;
|
|||
#endif
|
||||
|
||||
#if EAGAIN != SOCKEWOULDBLOCK
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == EAGAIN || (e) == SOCKEWOULDBLOCK)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EAGAIN || (e) == EWOULDBLOCK)
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == SOCKEWOULDBLOCK || (e) == EAGAIN)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK || (e) == EAGAIN)
|
||||
#else
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == EAGAIN)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EAGAIN)
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == SOCKEWOULDBLOCK)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue