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:
Richard Frith-MacDonald 2011-10-08 16:29:19 +00:00
parent 5021629c2b
commit 364fb1ec98
7 changed files with 39 additions and 16 deletions

View file

@ -910,7 +910,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
[self setNonBlocking: YES];
if (connect(net, &sin, GSPrivateSockaddrLength(&sin)) == -1)
{
if (errno != EINPROGRESS)
if (!GSWOULDBLOCK)
{
NSLog(@"unable to make connection to %@ - %@",
GSPrivateSockaddrName(&sin), [NSError _last]);