Skip to contentSkip to conversation

nftables: Fix build on musl when xtables enabled

PATCH New Khem Raj 1 participant 1 message Mar 29, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 nftables: Fix build on musl when xtables enabled

---
 meta-networking/recipes-filter/nftables/nftables_1.1.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-filter/nftables/nftables_1.1.1.bb +3 -0
index 17709016be..f0f51f5397 100644
@@ -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)}"