(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
1 changed files with 2 additions and 4 deletions

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 )