static int net_SetMcastHopLimit( vlc_object_t *p_this,
int fd, int family, int hlim )
{
-#ifndef SYS_BEOS
int proto, cmd;
/* There is some confusion in the world whether IP_MULTICAST_TTL
* int as a fallback to be safe */
switch( family )
{
+#ifdef IP_MULTICAST_TTL
case AF_INET:
proto = SOL_IP;
cmd = IP_MULTICAST_TTL;
break;
+#endif
#ifdef IPV6_MULTICAST_HOPS
case AF_INET6:
if( setsockopt( fd, proto, cmd, &buf, sizeof( buf ) ) )
return VLC_EGENERIC;
}
-#endif
+
return VLC_SUCCESS;
}