mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-23 19:59:41 +00:00
additional fix-up for IPV6 on Android API 21+
fixes: networking/interface.c:62:8: error: redefinition of 'struct in6_ifreq' and: error: field 'ifru_addr' has incomplete type struct sockaddr ifru_addr; error: field 'ifru_dstaddr' has incomplete type struct sockaddr ifru_dstaddr; ... since sockaddr was moved from linux/socket.h to sys/socket.h in newer NDK revisions
This commit is contained in:
parent
e0565bde5f
commit
9b7a89681a
@ -55,6 +55,7 @@
|
||||
|
||||
#ifdef HAVE_AFINET6
|
||||
# ifndef _LINUX_IN6_H
|
||||
# ifndef __BIONIC__
|
||||
/*
|
||||
* This is from linux/include/net/ipv6.h
|
||||
*/
|
||||
@ -63,6 +64,7 @@ struct in6_ifreq {
|
||||
uint32_t ifr6_prefixlen;
|
||||
unsigned int ifr6_ifindex;
|
||||
};
|
||||
# endif
|
||||
# endif
|
||||
#endif /* HAVE_AFINET6 */
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
#include <net/route.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
#include <linux/in6.h>
|
||||
#include <linux/ipv6_route.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user