platform_bionic/libc/include/netinet
Colin Cross d27506716a Define sockaddr_storage in bionic
Bionic currently renames the kernel's __kernel_sockaddr_storage
to sockaddr_storage.  We would like to reuse the bionic kernel
headers for musl, but musl defines its own sockaddr_storage,
causing redefinition errors when the musl and kernel headers
are both included.

Give bionic its own definition of sockaddr_storage so the kernel
one can be left as __kernel_sockaddr_storage, avoiding the
conflict in musl.

Some of the structs in netinet/in.h contain sockaddr_storage members.
There are definitions in linux/in.h, but they now use the
__kernel_sockaddr_storage naming.  To avoid having to copy the structs
from linux/in.h into netinet/in.h, add some #define hackery to
rename __kernel_sockaddr_storage to sockaddr_storage when including
linux/in.h from netinet/in.h.

Bug: 190084016
Test: m checkbuild
Test: bionic-unit-tests
Change-Id: I8f654511722b3a4a8e0bb146e4418ebcd370305c
2021-07-14 14:20:36 -07:00
..
ether.h Remove __INTRODUCED_IN for obsolete API levels. 2019-10-03 16:09:04 -07:00
icmp6.h icmp6.h - add captive portal and pref64 nd opts 2020-04-01 20:54:45 +00:00
if_ether.h Fix our *ether* headers mess. 2016-05-13 11:00:22 -07:00
in.h Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
in6.h Make it possible to build bionic with -I instead of -isystem. 2016-07-22 13:12:53 -07:00
in_systm.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
ip.h Remove remaining big-endian cruft. 2016-09-16 18:53:34 -07:00
ip6.h Remove remaining big-endian cruft. 2016-09-16 18:53:34 -07:00
ip_icmp.h <netinet/ip_icmp.h>: ensure struct icmphdr is available. 2018-06-27 12:29:06 -07:00
tcp.h Fix <resolv.h> and <netinet/tcp.h> so dnscap builds. 2016-05-16 14:03:43 -07:00
udp.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00