d27506716a
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 |
||
---|---|---|
.. | ||
hfi | ||
bnxt_re-abi.h | ||
cxgb4-abi.h | ||
efa-abi.h | ||
hns-abi.h | ||
i40iw-abi.h | ||
ib_user_ioctl_cmds.h | ||
ib_user_ioctl_verbs.h | ||
ib_user_mad.h | ||
ib_user_sa.h | ||
ib_user_verbs.h | ||
mlx4-abi.h | ||
mlx5-abi.h | ||
mlx5_user_ioctl_cmds.h | ||
mlx5_user_ioctl_verbs.h | ||
mthca-abi.h | ||
ocrdma-abi.h | ||
qedr-abi.h | ||
rdma_netlink.h | ||
rdma_user_cm.h | ||
rdma_user_ioctl.h | ||
rdma_user_ioctl_cmds.h | ||
rdma_user_rxe.h | ||
rvt-abi.h | ||
siw-abi.h | ||
vmw_pvrdma-abi.h |