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

platform check -> feature check

parent f4d4898c
...@@ -72,7 +72,6 @@ extern int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype, ...@@ -72,7 +72,6 @@ extern int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
static int net_SetMcastHopLimit( vlc_object_t *p_this, static int net_SetMcastHopLimit( vlc_object_t *p_this,
int fd, int family, int hlim ) int fd, int family, int hlim )
{ {
#ifndef SYS_BEOS
int proto, cmd; int proto, cmd;
/* There is some confusion in the world whether IP_MULTICAST_TTL /* There is some confusion in the world whether IP_MULTICAST_TTL
...@@ -81,10 +80,12 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this, ...@@ -81,10 +80,12 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this,
* int as a fallback to be safe */ * int as a fallback to be safe */
switch( family ) switch( family )
{ {
#ifdef IP_MULTICAST_TTL
case AF_INET: case AF_INET:
proto = SOL_IP; proto = SOL_IP;
cmd = IP_MULTICAST_TTL; cmd = IP_MULTICAST_TTL;
break; break;
#endif
#ifdef IPV6_MULTICAST_HOPS #ifdef IPV6_MULTICAST_HOPS
case AF_INET6: case AF_INET6:
...@@ -107,7 +108,7 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this, ...@@ -107,7 +108,7 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this,
if( setsockopt( fd, proto, cmd, &buf, sizeof( buf ) ) ) if( setsockopt( fd, proto, cmd, &buf, sizeof( buf ) ) )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
#endif
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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