platform_bionic/libc/kernel/uapi
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
..
asm-arm/asm Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
asm-arm64/asm Update to v5.11 kernel headers. 2021-02-16 16:01:34 -08:00
asm-generic Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
asm-x86/asm Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
drm Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
linux Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
misc Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
mtd Update to v5.13 kernel headers. 2021-07-01 01:30:21 +00:00
rdma Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
scsi Update to v5.11 kernel headers. 2021-02-16 16:01:34 -08:00
sound Update to v5.11 kernel headers. 2021-02-16 16:01:34 -08:00
video Remove the repetitive warnings from the uapi headers. 2017-05-25 13:48:01 -07:00
xen Update to v4.19 kernel headers. 2018-10-30 09:21:16 -07:00