diff mbox series

ipset: fix build with musl

Message ID 20170925050901.31033-1-stijn@linux-ipv6.be
State Accepted
Delegated to: Jozsef Kadlecsik
Headers show
Series ipset: fix build with musl | expand

Commit Message

Stijn Tintel Sept. 25, 2017, 5:09 a.m. UTC
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(+)

Comments

Jozsef Kadlecsik Sept. 25, 2017, 6:13 p.m. UTC | #1
Hi Stijn,

On Mon, 25 Sep 2017, Stijn Tintel wrote:

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

Patch is applied in ipset git tree, thanks.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jozsef Kadlecsik Sept. 26, 2017, 7:32 a.m. UTC | #2
On Mon, 25 Sep 2017, Jozsef Kadlecsik wrote:

> > 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>
> 
> Patch is applied in ipset git tree, thanks.

I reverted your patch and applied the proper fix: replaced the last 
occurence of u_int8_t in the ipset userspace tree with uint8_t.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

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>