Re: [PATCH xtables] xtables-monitor: fix build with older glibc

2018-11-15 Thread Baruch Siach
Hi Florian, Florian Westphal writes: > Baruch Siach wrote: >> glibc older than 2.19 require _BSD_SOURCE to expose BSD style fields of >> struct tcphdr. Fix the following build failure: >> >> xtables-monitor.c: In function 'trace_print_packet': >> xtables-monitor.c:406:43: error: 'const struct

Re: [PATCH xtables] xtables-monitor: fix build with older glibc

2018-11-15 Thread Florian Westphal
Baruch Siach wrote: > glibc older than 2.19 require _BSD_SOURCE to expose BSD style fields of > struct tcphdr. 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 > 'th_sport' >

[PATCH xtables] xtables-monitor: fix build with older glibc

2018-11-14 Thread Baruch Siach
glibc older than 2.19 require _BSD_SOURCE to expose BSD style fields of struct tcphdr. 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 'th_sport' printf("SPORT=%d DPORT=%d ",