mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk libT): do EAFNOSUPPORT check on socket() errno on all platforms
This commit is contained in:
parent
02cd9597e5
commit
fbfaeda8df
1 changed files with 2 additions and 4 deletions
|
@ -523,11 +523,9 @@ tr_fdSocketCreate( int domain, int type )
|
|||
if( gFd->socketCount < getSocketMax( gFd ) )
|
||||
if( ( s = socket( domain, type, 0 ) ) < 0 )
|
||||
{
|
||||
#ifdef SYS_DARWIN
|
||||
if( sockerrno != EAFNOSUPPORT )
|
||||
#endif
|
||||
tr_err( _( "Couldn't create socket: %s" ),
|
||||
tr_strerror( sockerrno ) );
|
||||
tr_err( _( "Couldn't create socket: %s" ),
|
||||
tr_strerror( sockerrno ) );
|
||||
}
|
||||
|
||||
if( s > -1 )
|
||||
|
|
Loading…
Reference in a new issue