[MPlayer-dev-eng] [PATCH] ipv6_mreq/sockaddr_in6/sockaddr_sa_len definition

KO Myung-Hun komh at chollian.net
Wed Feb 3 13:04:44 CET 2010


Hi/2.

Diego Biurrun wrote:
> On Tue, Feb 02, 2010 at 01:22:38AM +0900, KO Myung-Hun wrote:
>>
>> This patch checks ipv6_mreq/sockaddr_in6/sockaddr_sa_len as FFmpeg
>> instead of defining macros unconditionally.
>
> Ah, I see somebody is picking up my unfiinshed business,
> excellent :)
>

I could not compile without this. ^^

>> --- configure	(revision 30480)
>> +++ configure	(working copy)
>> @@ -3212,6 +3219,73 @@
>>
>> +echocheck "struct ipv6_mreq"
>> +if test "$_struct_ipv6_mreq" = auto; then
>> +  _struct_ipv6_mreq=no
>> +  cat>  $TMPC<<  EOF
>> +#if HAVE_WINSOCK2_H
>> +#include<winsock2.h>
>
> FFmpeg uses ws2tcpip.h for the same test.  What gives?
>

It's a mistake of C&P from sockaddr_storage. ^^

Fixed.

>> +int main(void) { struct ipv6_mreq mreq6; return 0; }
>> +EOF
>> +  cc_check $cc_check_winsock2_h&&  _struct_ipv6_mreq=yes
>
> What is $cc_check_winsock2_h?

It is defined as HAVE_WINSOCK2_H depending on _winsock2_h above struct 
addrinfo check

>
>> +if test "$_struct_ipv6_mreq" = yes; then
>> +  def_ipv6_mreq="#define HAVE_STRUCT_IPV6_MREQ 1"
>> +else
>> +  def_ipv6_mreq="#define HAVE_STRUCT_IPV6_MREQ 0"
>> +fi
>
> Unconditionally #define it to 0 at the top, then you can use&&  here.
>
> The same comments apply to the other checks.
>

Tried.

>> @@ -9034,6 +9130,9 @@
>>   $def_addrinfo
>>   $def_getaddrinfo
>>   $def_sockaddr_storage
>> +$def_ipv6_mreq
>> +$def_sockaddr_in6
>> +$def_sockaddr_sa_len
>
> This was previously in alphabetical order..
>

Fixed.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.0
Under OS/2 Warp 4 for Korean with FixPak #15
On Intel Core2Duo T5500 1.66 GHz with 1 GB RAM

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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100203/ad90f141/attachment.txt>


More information about the MPlayer-dev-eng mailing list