1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-06 16:44:19 +02:00

Compile fix

This commit is contained in:
Rémi Denis-Courmont 2005-08-21 12:57:10 +00:00
parent df1e5c5045
commit 789892ca93

View File

@ -198,10 +198,9 @@ static int OpenUDP( vlc_object_t * p_this )
# ifndef IPV6_PROTECTION_LEVEL # ifndef IPV6_PROTECTION_LEVEL
# define IPV6_PROTECTION_LEVEL 23 # define IPV6_PROTECTION_LEVEL 23
# endif # endif
if( ptr->ai_family == AF_INET6 )
{ {
int i_val = 30 /*PROTECTION_LEVEL_UNRESTRICTED*/; int i_val = 30 /*PROTECTION_LEVEL_UNRESTRICTED*/;
setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, &i_val, setsockopt( i_handle, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, &i_val,
sizeof( i_val ) ); sizeof( i_val ) );
} }
#endif #endif