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:
rfm 2011-10-13 13:39:35 +00:00
parent ac2c5d6090
commit 2756763d0f
2 changed files with 10 additions and 4 deletions

View file

@ -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__ */