diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-11-17 22:20:08 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-17 21:24:17 +0100 |
commit | 90b0d3abfc0b4150b198eb17080d75acc5838a59 (patch) | |
tree | c81e9a68bc6a9a2b1af7288c24ae87f97270d832 /extensions/libxt_set.c | |
parent | 8d9d7e4b9ef4c6e6abab2cf35c747d7ca36824bd (diff) |
xtables-monitor: fix build with musl libc
Commit 7c8791edac3 ("xtables-monitor: fix build with older glibc")
changed the code to use GNU style tcphdr fields. Unfortunately, musl
libc requires _GNU_SOURCE definition to expose these fields.
Fix the following build failure:
xtables-monitor.c: In function ‘trace_print_packet’:
xtables-monitor.c:406:43: error: ‘const struct tcphdr’ has no member named ‘source’
printf("SPORT=%d DPORT=%d ", ntohs(tcph->source), ntohs(tcph->dest));
^~
xtables-monitor.c:406:64: error: ‘const struct tcphdr’ has no member named ‘dest’
printf("SPORT=%d DPORT=%d ", ntohs(tcph->source), ntohs(tcph->dest));
^~
...
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_set.c')
0 files changed, 0 insertions, 0 deletions