From 7c0f6444e208562075c79afd616891dc1957c1de Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 28 Mar 2025 22:53:17 -0700 Subject: [PATCH] nftables: Fix build on musl when xtables enabled Signed-off-by: Khem Raj --- meta-networking/recipes-filter/nftables/nftables_1.1.1.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-networking/recipes-filter/nftables/nftables_1.1.1.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.1.bb index 17709016be..f0f51f5397 100644 --- a/meta-networking/recipes-filter/nftables/nftables_1.1.1.bb +++ b/meta-networking/recipes-filter/nftables/nftables_1.1.1.bb @@ -33,6 +33,9 @@ EXTRA_OECONF = " \ PEP517_SOURCE_PATH = "${S}/py" +# xtables will need it on musl see iptables +CFLAGS:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0" + inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python_setuptools_build_meta', '', d)} PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}"