mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
tweak for reporting error code of connection failure
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ac2c5d6090
commit
2756763d0f
2 changed files with 10 additions and 4 deletions
|
@ -70,8 +70,10 @@
|
|||
#define INVALID_SOCKET -1
|
||||
#define BADSOCKET(X) ((X) < 0)
|
||||
#define GSNETERROR errno
|
||||
#define GSWOULDBLOCK (EINPROGRESS == GSNETERROR\
|
||||
|| EALREADY == GSNETERROR || EAGAIN == errno)
|
||||
#define GSWOULDBLOCK (EINPROGRESS == errno\
|
||||
|| EALREADY == errno\
|
||||
|| EINTR == errno\
|
||||
|| EAGAIN == errno)
|
||||
|
||||
#endif /* __MINGW__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue