cldap_ping.c: add missing <sys/types.h> include
Subsystems (2)
PATCH 1/1 cldap_ping.c: add missing <sys/types.h> include
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 <[email protected]>
--- cldap_ping.c | 1 + 1 file changed, 1 insertion(+)
cldap_ping.c +1 -0
@@ -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>
Signature · 1 line
2.47.0
Quoted 5 lines · Thomas Petazzoni
Fixes:
cldap_ping.c: In function ‘read_dns_string’:
cldap_ping.c:72:37: error: ‘u_char’ undeclared (first use in this function)
Quoted 8 lines
when building with the musl C library, but even with glibc
u_charis defined in <sys/types.h>, it happens to work with glibc <sys/types.h> gets included by another header.Signed-off-by Thomas Petazzoni <[email protected]>--- cldap_ping.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Paulo Alcantara (Red Hat) <[email protected]>