[vlc-devel] [PATCH 2/2] Android: Fix src/network/udp.c compilation.

Rémi Denis-Courmont remi at remlab.net
Thu Jun 2 21:55:46 CEST 2011


Le jeudi 2 juin 2011 19:30:07 Jean-Baptiste Kempf, vous avez écrit :
> diff --git a/src/network/udp.c b/src/network/udp.c
> index 80522af..2781313 100644
> --- a/src/network/udp.c
> +++ b/src/network/udp.c
> @@ -373,7 +373,7 @@ net_IPv4Join (vlc_object_t *obj, int fd,
>      memset (&opt, 0, sizeof (opt));
>      if (src != NULL)
>      {
> -# ifdef IP_ADD_SOURCE_MEMBERSHIP
> +# if defined( IP_ADD_SOURCE_MEMBERSHIP ) && !defined( __ANDROID__ )
>          cmd = IP_ADD_SOURCE_MEMBERSHIP;
>          opt.gsr4.imr_multiaddr = grp->sin_addr;
>          opt.gsr4.imr_sourceaddr = src->sin_addr;

No objections though we might as well drop the entire function on __linux__.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list