Index: code/qcommon/net_ip.c =================================================================== --- code/qcommon/net_ip.c (revision 1765) +++ code/qcommon/net_ip.c (working copy) @@ -72,10 +72,20 @@ # include # include # include -# if !defined(__sun) && !defined(__sgi) +# if !defined(ANDROID) && !defined(__sun) && !defined(__sgi) # include # endif + #if defined(ANDROID) + #define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP + #define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP + #define ipv6mr_interface ipv6mr_ifindex + + #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } + static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; + static const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; + #endif + # ifdef __sun # include # endif @@ -1296,7 +1306,7 @@ } } -#if defined(__linux__) || defined(MACOSX) || defined(__BSD__) +#if (defined(__linux__) && !defined(ANDROID)) || defined(MACOSX) || defined(__BSD__) void NET_GetLocalAddress(void) { struct ifaddrs *ifap, *search;