Revert "brcm47xx: Fix sysupgrade with E1200v1"
[openwrt/openwrt.git] / package / network / utils / ipset / patches / 100-ipset-fix-build-with-musl.patch
1 From 992723e3712a09037338aa9e5506a080e24d1642 Mon Sep 17 00:00:00 2001
2 From: Stijn Tintel <stijn@linux-ipv6.be>
3 Date: Mon, 25 Sep 2017 08:09:01 +0300
4 Subject: [PATCH] ipset: fix build with musl
5
6 Include sys/types.h for u_int8_t and define _GNU_SOURCE for musl to
7 expose it.
8
9 Fixes: 54802b2c2826 ("Report if the option is supported by a newer kernel release")
10 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
11 Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
12 ---
13 src/ipset.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 diff --git a/src/ipset.c b/src/ipset.c
17 index 79f56b8..8d70abc 100644
18 --- a/src/ipset.c
19 +++ b/src/ipset.c
20 @@ -14,6 +14,8 @@
21 #include <stdio.h> /* fprintf, fgets */
22 #include <stdlib.h> /* exit */
23 #include <string.h> /* str* */
24 +#define _GNU_SOURCE
25 +#include <sys/types.h> /* u_int8_t */
26
27 #include <config.h>
28
29 --
30 2.13.5
31