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, ...@@ -83,11 +83,13 @@ static int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
if( fd == -1 ) if( fd == -1 )
{ {
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32) || defined(UNDER_CE)
msg_Warn( p_this, "cannot create socket (%i)", if( WSAGetLastError ( ) != WSAEAFNOSUPPORT )
WSAGetLastError() ); msg_Warn( p_this, "cannot create socket (%i)",
WSAGetLastError() );
#else #else
msg_Warn( p_this, "cannot create socket (%s)", if( errno != EAFNOSUPPORT )
strerror( errno ) ); msg_Warn( p_this, "cannot create socket (%s)",
strerror( errno ) );
#endif #endif
return -1; 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