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:
Chris Renshaw 2021-05-06 16:09:06 -03:00 committed by topjohnwu
parent e0565bde5f
commit 9b7a89681a
2 changed files with 3 additions and 0 deletions

View File

@ -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 */

View File

@ -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>