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 --- 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 937b436..486544a 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.52.0