[vlc-devel] [PATCH 02/10] Deactivate sap-ipv6 on Android

Jean-Baptiste Kempf jb at videolan.org
Sat Jun 11 14:41:50 CEST 2011


---
 modules/services_discovery/sap.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 18e841a..a4b7e0e 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -502,6 +502,7 @@ static void *Run( void *data )
         InitSocket( p_sd, SAP_V4_LOCAL_ADDRESS, SAP_PORT );
         InitSocket( p_sd, SAP_V4_LINK_ADDRESS, SAP_PORT );
     }
+#ifndef __ANDROID__
     if( var_CreateGetBool( p_sd, "sap-ipv6" ) )
     {
         char psz_address[NI_MAXNUMERICHOST] = "ff02::2:7ffe%";
@@ -541,7 +542,7 @@ static void *Run( void *data )
             }
             closesocket(s);
         }
-#endif
+#endif /* WIN32 */
         *strchr (psz_address, '%') = '\0';
 
         static const char ipv6_scopes[] = "1456789ABCDE";
@@ -551,6 +552,7 @@ static void *Run( void *data )
             InitSocket( p_sd, psz_address, SAP_PORT );
         }
     }
+#endif /* __ANDROID__ */
 
     psz_addr = var_CreateGetString( p_sd, "sap-addr" );
     if( psz_addr && *psz_addr )
-- 
1.7.5.3




More information about the vlc-devel mailing list