Commit a6223251 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't print EAFNOSUPPORT error - refs #320

parent 4c7f9a48
......@@ -83,11 +83,13 @@ static int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
if( fd == -1 )
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Warn( p_this, "cannot create socket (%i)",
WSAGetLastError() );
if( WSAGetLastError ( ) != WSAEAFNOSUPPORT )
msg_Warn( p_this, "cannot create socket (%i)",
WSAGetLastError() );
#else
msg_Warn( p_this, "cannot create socket (%s)",
strerror( errno ) );
if( errno != EAFNOSUPPORT )
msg_Warn( p_this, "cannot create socket (%s)",
strerror( errno ) );
#endif
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment