]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
toolchain: limit musl/kernel headers conflict workaround
authorBaruch Siach <baruch@tkos.co.il>
Tue, 13 Feb 2018 12:27:50 +0000 (14:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 14 Feb 2018 21:02:29 +0000 (22:02 +0100)
commit6afee03e3cc3b9afa4861cc0a9bbc6be03a16be8
treec8daf2d26575c6b230464a0636f5f264023dd3d9
parentb99ca5ce3243cf06c45917bd07872aaf00d25e0a
toolchain: limit musl/kernel headers conflict workaround

The musl/kernel headers workaround was added in commit 196932cd91
(toolchain: workaround musl/kernel headers conflict) to fix definition
collisions in networking related headers between musl headers and kernel
headers. Kernel headers from version 4.15 and newer do not need this
workaround anymore since kernel commit c0bace798436bc (uapi libc compat:
add fallback for unsupported libcs). The C library does not have to
define the __GLIBC__ macro to make the __UAPI_DEF_* macros effective.

Updated the comment to accordingly.

Tested with the xl2tp package. This package fails to build with older
kernel headers without the workaround (struct in_pktinfo redefinition,
among others). With 4.15 headers, xl2tp builds fine with this patch
applied. That is, no workaround needed.

Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
toolchain/toolchain/toolchain.mk