]> git.ipfire.org Git - thirdparty/libnftnl.git/commit
examples: nft-rule-add: Fix compile on musl libc master
authorAnna Wilcox <AWilcox@Wilcox-Tech.com>
Fri, 20 Mar 2026 08:43:04 +0000 (03:43 -0500)
committerFlorian Westphal <fw@strlen.de>
Fri, 20 Mar 2026 10:25:20 +0000 (11:25 +0100)
commit363b0e32361969fc695c3eaf619f343abcf2f912
treef8b2ab07cbed7120e489f3b8890b1321be9671e1
parent201de5b94c6d323cc9ddcb3ea8cce72ee087679c
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 <AWilcox@Wilcox-Tech.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
examples/nft-rule-add.c