[vlc-devel] [PATCH 2/2] Android: Fix src/network/udp.c compilation.
Jean-Baptiste Kempf
jb at videolan.org
Thu Jun 2 14:06:18 CEST 2011
From: Rémi Duraffort <ivoire at videolan.org>
Fixed and Modified-by: Jean-Baptiste Kempf <jb at videolan.org>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
---
src/network/udp.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/network/udp.c b/src/network/udp.c
index 80522af..2b46197 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -375,9 +375,15 @@ net_IPv4Join (vlc_object_t *obj, int fd,
{
# ifdef IP_ADD_SOURCE_MEMBERSHIP
cmd = IP_ADD_SOURCE_MEMBERSHIP;
+# ifndef __ANDROID__
opt.gsr4.imr_multiaddr = grp->sin_addr;
opt.gsr4.imr_sourceaddr = src->sin_addr;
opt.gsr4.imr_interface = id;
+# else
+ opt.gsr4.imr_multiaddr = grp->sin_addr.s_addr;
+ opt.gsr4.imr_sourceaddr = src->sin_addr.s_addr;
+ opt.gsr4.imr_interface = id.s_addr;
+# endif /* __ANDROID__ */
optlen = sizeof (opt.gsr4);
# else
errno = ENOSYS;
--
1.7.5.3
More information about the vlc-devel
mailing list