Fixes: cldap_ping.c: In function ‘read_dns_string’: cldap_ping.c:72:37: error: ‘u_char’ undeclared (first use in this function) when building with the musl C library, but even with glibc u_char is defined in <sys/types.h>, it happens to work with glibc <sys/types.h> gets included by another header. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx> --- cldap_ping.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cldap_ping.c b/cldap_ping.c index 9183b27..a603be3 100644 --- a/cldap_ping.c +++ b/cldap_ping.c @@ -20,6 +20,7 @@ #include <talloc.h> #include <string.h> #include <sys/socket.h> +#include <sys/types.h> #include <arpa/inet.h> #include <unistd.h> #include <resolv.h> -- 2.47.0