[Toybox] [PATCH 1/2] scripts/config2help: include more headers

Isaac Dunham ibid.ag at gmail.com
Wed Feb 17 15:08:54 PST 2016


socklen_t is needed by lib/lib.h, and is defined in <sys/socket.h>
fixes build failure on Alpine Linux with musl as libc (presumably
introduced when config2help moved away from toys.h)
isspace is defined in <ctype.h>; use that.
---
 scripts/config2help.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/config2help.c b/scripts/config2help.c
index 7bc3bad..98ac84a 100644
--- a/scripts/config2help.c
+++ b/scripts/config2help.c
@@ -3,7 +3,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <ctype.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <regex.h>
-- 
2.7.1



More information about the Toybox mailing list