1
0
Fork 0
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:
Erick Turnquist 2009-08-17 18:49:21 +00:00
parent 02cd9597e5
commit fbfaeda8df

View file

@ -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 )