netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipset: fix build with musl
@ 2017-09-25  5:09 Stijn Tintel
  2017-09-25 18:13 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 3+ messages in thread
From: Stijn Tintel @ 2017-09-25  5:09 UTC (permalink / raw)
  To: netfilter-devel

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>
---
 src/ipset.c | 2 ++
 1 file changed, 2 insertions(+)

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>
 
-- 
2.13.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-26  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-25  5:09 [PATCH] ipset: fix build with musl Stijn Tintel
2017-09-25 18:13 ` Jozsef Kadlecsik
2017-09-26  7:32   ` Jozsef Kadlecsik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).