[vlc-devel] [PATCH 3/4] sap: disable IPv6 codes on OS/2

KO Myung-Hun komh78 at gmail.com
Tue Feb 5 13:37:40 CET 2013



Rémi Denis-Courmont wrote:
> On Tue, 05 Feb 2013 11:48:36 +0900, KO Myung-Hun <komh78 at gmail.com> wrote:
>> KO Myung-Hun wrote:
>>> ---
>>>  modules/services_discovery/sap.c |    2 ++
>>>  1 files changed, 2 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/modules/services_discovery/sap.c
>>> b/modules/services_discovery/sap.c
>>> index faf5b22..89fb275 100644
>>> --- a/modules/services_discovery/sap.c
>>> +++ b/modules/services_discovery/sap.c
>>> @@ -511,12 +511,14 @@ static void *Run( void *data )
>>>  #endif
>>>      *strchr (psz_address, '%') = '\0';
>>>  
>>> +#ifndef __OS2__
>>>      static const char ipv6_scopes[] = "1456789ABCDE";
>>>      for (const char *c_scope = ipv6_scopes; *c_scope; c_scope++)
>>>      {
>>>          psz_address[3] = *c_scope;
>>>          InitSocket( p_sd, psz_address, SAP_PORT );
>>>      }
>>> +#endif
>>>  
>>>      psz_addr = var_CreateGetString( p_sd, "sap-addr" );
>>>      if( psz_addr && *psz_addr )
>>
>> Ping ?
> 
> Why is this needed?
> 

socket bind error in InitSocket(). OS/2 does not support IPv6, yet.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.22 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr




More information about the vlc-devel mailing list