]> granicus.if.org Git - ipset/commitdiff
ipset: fix build with musl
authorStijn Tintel <stijn@linux-ipv6.be>
Mon, 25 Sep 2017 05:09:01 +0000 (08:09 +0300)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 25 Sep 2017 18:10:57 +0000 (20:10 +0200)
Include sys/types.h for u_int8_t and define _GNU_SOURCE for musl to
expose it.

Fixes: 54802b2c2826 ("Report if the option is supported by a newer kernel release")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
src/ipset.c

index 79f56b869ea70277b01a197d0dbdf4fbae87b4ea..8d70abcc2b26b494f178ae119e08df67b1c2d71a 100644 (file)
@@ -14,6 +14,8 @@
 #include <stdio.h>                     /* fprintf, fgets */
 #include <stdlib.h>                    /* exit */
 #include <string.h>                    /* str* */
+#define _GNU_SOURCE
+#include <sys/types.h>                 /* u_int8_t */
 
 #include <config.h>