mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
networking portability for for solaris
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33951 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5021629c2b
commit
364fb1ec98
7 changed files with 39 additions and 16 deletions
|
@ -1246,12 +1246,7 @@ socketError(int result)
|
|||
static inline BOOL
|
||||
socketWouldBlock()
|
||||
{
|
||||
#if defined(__MINGW__)
|
||||
int e = WSAGetLastError();
|
||||
return (e == WSAEWOULDBLOCK || e == WSAEINPROGRESS) ? YES : NO;
|
||||
#else
|
||||
return (errno == EWOULDBLOCK || errno == EINPROGRESS) ? YES : NO;
|
||||
#endif
|
||||
return GSWOULDBLOCK ? YES : NO;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue