diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2017-09-25 08:09:01 +0300 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2017-09-25 20:10:57 +0200 |
commit | 992723e3712a09037338aa9e5506a080e24d1642 (patch) | |
tree | 2b1718725e0eda178feb7b4fa92a1fdb3e25d2f8 /src | |
parent | 82751c4269b72e10788a931008d63eed9e6bd126 (diff) |
ipset: fix build with musl
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipset.c b/src/ipset.c index 79f56b8..8d70abc 100644 --- a/src/ipset.c +++ b/src/ipset.c @@ -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> |