Nick Hainke d16758d2d3 xdp-tools: fix musl build issues
Add patches to fix build failures on musl-based toolchains:

0002-xdpsock-fix-struct-ethhdr-redefinition-on-musl.patch:
xdpsock.c included <net/ethernet.h> and <netinet/ether.h> alongside
<linux/if_ether.h>, triggering a struct ethhdr redefinition on musl.
Replace BSD-style ether_header/ether_addr with struct ethhdr and drop
the conflicting includes.

0003-build-use-gnu2x-to-avoid-stdbool.h-dependency.patch:
Switch CFLAGS and BPF_CFLAGS from -std=gnu11 to -std=gnu2x. In C23,
bool is a native keyword, fixing "stdbool.h: No such file or directory"
errors with a clang lacking its resource directory (e.g. llvm-bpf built
with LLVM_INSTALL_TOOLCHAIN_ONLY=ON on musl targets).

Link: https://github.com/openwrt/openwrt/pull/22983
Signed-off-by: Nick Hainke <vincent@systemli.org>
2026-04-20 08:53:33 +02:00
..
2026-02-17 22:25:22 +01:00
2026-04-19 18:46:36 +02:00
2026-01-02 18:07:02 +01:00
2026-02-17 22:25:26 +01:00
2025-08-17 17:36:54 +02:00
2026-02-17 22:25:09 +01:00
2026-02-17 22:25:09 +01:00
2026-01-02 18:07:02 +01:00
2026-02-17 22:25:09 +01:00
2026-01-28 23:41:32 +01:00
2026-03-03 14:17:48 +02:00
2026-03-03 14:17:48 +02:00
2025-11-25 14:08:07 +01:00
2026-04-03 18:47:49 +02:00