]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools: elfutils: fix uio header inclusion 24539/head
authorPaweł Owoc <frut3k7@gmail.com>
Sun, 2 Aug 2026 06:51:39 +0000 (08:51 +0200)
committerRobert Marko <robimarko@gmail.com>
Tue, 4 Aug 2026 07:17:53 +0000 (09:17 +0200)
commit9452d9672165c2acfdb93824938b285bbf86be28
treefff43f5b92b3c4e21f3013b853633ec31b62bc6e
parent70b3f992b81462f5cc5ba24ca41aaadd0186e1a4
tools: elfutils: fix uio header inclusion

Fixes arm64 build failures by replacing <linux/uio.h> with POSIX <sys/uio.h>
to avoid header redefinition conflicts.

gnulib's fcntl.h ends up including glibc's fcntl.h and fcntl-linux.h
which includes glibc's types/struct_iovec.h,
thats where the redefinition happens.

the lines that use <linux/uio.h> are antiquated and were never necessary.
it can be traced back to the original 2014 change that added the file with aarch64 support
in upstream commit 66637fa21044ac0058b25522f473669e73de328b

it was never necessary to use the linux header over the glibc headers,
as elfutils only needs the iovec struct and that struct was present since glibc 2.0 in the 1990s

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24539
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/elfutils/patches/006-Fix-build-on-aarch64-musl.patch [new file with mode: 0644]