mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
acceidentally missed from earlier commit
This commit is contained in:
parent
88e43d73a6
commit
90e0460466
1 changed files with 4 additions and 2 deletions
|
@ -813,9 +813,11 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
[self setNonBlocking: YES];
|
||||
if (connect(net, &sin, GSPrivateSockaddrLength(&sin)) == -1)
|
||||
{
|
||||
if (!GSWOULDBLOCK)
|
||||
long eno = GSNETERROR;
|
||||
|
||||
if (!GSWOULDBLOCK(eno))
|
||||
{
|
||||
NSError *e = [NSError _last];
|
||||
NSError *e = [NSError _systemError: eno];
|
||||
|
||||
NSLog(@"unable to make socket connection to %@ - %@ (%d)",
|
||||
GSPrivateSockaddrName(&sin), e, (int)[e code]);
|
||||
|
|
Loading…
Reference in a new issue