[vlc-devel] [PATCH 2/2] Android: Fix src/network/udp.c compilation.
Jean-Baptiste Kempf
jb at videolan.org
Thu Jun 2 18:30:07 CEST 2011
On Thu, Jun 02, 2011 at 05:56:10PM +0300, Rémi Denis-Courmont wrote :
> But in any case, I believe this is dead code on Android as on any recent Linux
> kernel.
2nd try then:
Subject: Android: Fix src/network/udp.c compilation.
---
src/network/udp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
--
1.7.5.3
More information about the vlc-devel
mailing list