python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / iptables / 0001-utils-nfsynproxy-fix-build-with-musl-libc.patch
blob1f86ad1354909ddbf831b8ce6f01fc1f7ab608e3
1 From 06e0312d0bfd1f0b9e7c23ab654f18524d49e86b Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Thu, 2 Mar 2017 09:20:48 +0200
4 Subject: [PATCH] utils: nfsynproxy: fix build with musl libc
6 The musl libc exposes some struct tcphdr field only when _GNU_SOURCE is
7 defined. Fix the following build failure:
9 nfsynproxy.c: In function ‘parse_packet’:
10 nfsynproxy.c:34:9: error: ‘const struct tcphdr’ has no member named ‘syn’
11 if (!th->syn || !th->ack)
13 nfsynproxy.c:34:21: error: ‘const struct tcphdr’ has no member named ‘ack’
14 if (!th->syn || !th->ack)
16 nfsynproxy.c:42:8: error: ‘const struct tcphdr’ has no member named ‘res2’
17 if (th->res2 == 0x1)
19 nfsynproxy.c:45:13: error: ‘const struct tcphdr’ has no member named ‘doff’
20 length = th->doff * 4 - sizeof(*th);
23 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
24 ---
25 Upstream status: pending (http://patchwork.ozlabs.org/patch/734503/)
27 utils/nfsynproxy.c | 1 +
28 1 file changed, 1 insertion(+)
30 diff --git a/utils/nfsynproxy.c b/utils/nfsynproxy.c
31 index baedc92c5d9f..bf5c416340f1 100644
32 --- a/utils/nfsynproxy.c
33 +++ b/utils/nfsynproxy.c
34 @@ -6,6 +6,7 @@
35 * published by the Free Software Foundation.
38 +#define _GNU_SOURCE
39 #include <stdlib.h>
40 #include <stdbool.h>
41 #include <unistd.h>
42 --
43 2.11.0