musl: fix handling of point-to-point interfaces in getifaddrs()
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 16 Nov 2015 18:15:00 +0000 (18:15 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 16 Nov 2015 18:15:00 +0000 (18:15 +0000)
commit2f4a6aa14a382fc79c9abf0dd63e995d50f95d64
treee3bc14c0b247d0426b8e97eb5911990981d2f390
parent19cec306d62c84196d1f8c5e74490d08fb70a511
musl: fix handling of point-to-point interfaces in getifaddrs()

Current musl reports the peer (remote) address of a point-to-point
interface and does not store the local address at all.

Apply the same special treatment of IFA_LOCAL to musl's getifaddrs() which
is also used in glibc and uclibc.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47488 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain/musl/patches/920-getifaddrs_ptp_fix.patch [new file with mode: 0644]