]> git.ipfire.org Git - thirdparty/openwrt.git/commit
xdp-tools: add patch to fix stddef.h build issue 21972/head
authorNick Hainke <vincent@systemli.org>
Tue, 10 Feb 2026 20:15:15 +0000 (21:15 +0100)
committerNick Hainke <vincent@systemli.org>
Wed, 11 Feb 2026 07:22:32 +0000 (08:22 +0100)
commitc752525511bbbee0b77b9d5f9ea7c25bb28de21b
tree2e20451629ef25eeca782e550f9fca81d48881e7
parentf9320e8d2d3974f992b803437f7a750b000000f0
xdp-tools: add patch to fix stddef.h build issue

Add a patch that avoids including <stddef.h> in BPF headers, fixing
build failures on OpenWrt toolchains where the header is unavailable:

  In file included from xdpfilt_dny_udp.c:10:
  In file included from ./xdpfilt_prog.h:24:
  ../lib/../headers/xdp/parsing_helpers.h:18:10: fatal error: 'stddef.h' file not found
    18 | #include <stddef.h>
        |          ^~~~~~~~~~
  1 error generated.
  make[5]: *** [../lib/common.mk:111: xdpfilt_dny_udp.o] Error 1
  make[4]: *** [Makefile:40: xdp-filter] Error 2

Link: https://github.com/openwrt/openwrt/pull/21972
Signed-off-by: Nick Hainke <vincent@systemli.org>
package/network/utils/xdp-tools/patches/0001-xdp-avoid-stddef.h-and-size_t-in-BPF-headers.patch [new file with mode: 0644]