Paranoia change - also check original BSD return value.
This commit is contained in:
@@ -62,7 +62,7 @@ typedef unsigned char u_char;
|
|||||||
#define SOCKET_ERR_NOTCONN ENOTCONN
|
#define SOCKET_ERR_NOTCONN ENOTCONN
|
||||||
#define SOCKET_ERR_NOTSOCK ENOTSOCK
|
#define SOCKET_ERR_NOTSOCK ENOTSOCK
|
||||||
|
|
||||||
#define IS_SOCKET_ERR_WOULDBLOCK(_e) ((_e) == EINPROGRESS || (_e) == EAGAIN)
|
#define IS_SOCKET_ERR_WOULDBLOCK(_e) ((_e) == EINPROGRESS || (_e) == EAGAIN || (_e) == EWOULDBLOCK)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user