# define if_nametoindex( str ) atoi( str )
#else
# include <unistd.h>
-# include <net/if.h>
+# ifdef HAVE_NET_IF_H
+# include <net/if.h>
+# endif
#endif
#ifndef SOL_IP
sizeof( addr ) ) < 0 )
{
msg_Err( p_this, "Cannot use %s as multicast interface: %s",
- strerror(errno) );
+ str, strerror(errno) );
return VLC_EGENERIC;
}
break;
network_socket_t sock;
module_t *p_network = NULL;
- if( ( psz_server != NULL ) && ( psz_server[0] == '\0' ) )
+/* if( ( psz_server != NULL ) && ( psz_server[0] == '\0' ) )
msg_Warn( p_this, "calling net_OpenUDP with an explicit destination "
"is obsolete - use net_ConnectUDP instead" );
if( i_server != 0 )
msg_Warn( p_this, "calling net_OpenUDP with an explicit destination "
- "port is obsolete - use __net_ConnectUDP instead" );
+ "port is obsolete - use __net_ConnectUDP instead" );*/
if( psz_server == NULL ) psz_server = "";
if( psz_bind == NULL ) psz_bind = "";
{
if( sock.i_handle != -1 )
{
- msg_Warn( p_this, "net: lame IPv6/IPv4 dual-stack present. "
- "Using only IPv4." );
+ msg_Warn( p_this, "net: lame IPv6/IPv4 dual-stack present, "
+ "using only IPv4." );
net_Close( fd6 );
}
else