From 363b0e32361969fc695c3eaf619f343abcf2f912 Mon Sep 17 00:00:00 2001 From: Anna Wilcox Date: Fri, 20 Mar 2026 03:43:04 -0500 Subject: [PATCH] examples: nft-rule-add: Fix compile on musl libc Without `_GNU_SOURCE`, the `dest` field on `tcphdr` is not present: nft-rule-add.c: In function 'setup_rule': nft-rule-add.c:108:21: error: 'struct tcphdr' has no member named 'dest' Signed-off-by: Anna Wilcox Signed-off-by: Florian Westphal --- examples/nft-rule-add.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/nft-rule-add.c b/examples/nft-rule-add.c index 937b4366..486544ae 100644 --- a/examples/nft-rule-add.c +++ b/examples/nft-rule-add.c @@ -5,6 +5,7 @@ * This software has been sponsored by Sophos Astaro */ +#define _GNU_SOURCE /* for tcphdr.dest */ #include #include #include -- 2.47.3