100-ipset-fix-build-with-musl.patch 859 B

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