openwrt-pf/tools/elfutils/patches
Paweł Owoc 9452d96721 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>
2026-08-04 09:17:53 +02:00
..
001-fix-backport-iquote-include.patch tools/elfutils: replace dependency hack with upstream include path fix 2025-07-26 14:38:08 +02:00
006-Fix-build-on-aarch64-musl.patch tools: elfutils: fix uio header inclusion 2026-08-04 09:17:53 +02:00
011-backport-mips-support-strip.patch tools/elfutils: update MIPS support patches 2025-07-26 14:38:08 +02:00
012-backport-mips-support-readelf.patch tools/elfutils: update to 0.192 2025-07-26 14:38:09 +02:00
013-backport-mips-support-elflint.patch tools/elfutils: update to 0.192 2025-07-26 14:38:09 +02:00
100-portability.patch tools/elfutils: update to 0.192 2025-07-26 14:38:09 +02:00
101-shared-conditional.patch tools/elfutils: update to 0.192 2025-07-26 14:38:09 +02:00
110-objects-manifest.patch tools/elfutils: update to 0.192 2025-07-26 14:38:09 +02:00