Message ID | 20241226204235.2311371-1-thomas.petazzoni@bootlin.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [cifs-utils] cldap_ping.c: add missing <sys/types.h> include | expand |
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>
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@bootlin.com> --- cldap_ping.c | 1 + 1 file changed, 1 insertion(+)