From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Pavel Shilovsky <pshilovsky@samba.org>
Cc: linux-cifs@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [PATCH cifs-utils] cldap_ping.c: add missing <sys/types.h> include
Date: Thu, 26 Dec 2024 21:42:35 +0100 [thread overview]
Message-ID: <20241226204235.2311371-1-thomas.petazzoni@bootlin.com> (raw)
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(+)
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
next reply other threads:[~2024-12-26 20:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 20:42 Thomas Petazzoni [this message]
2025-01-20 16:10 ` [PATCH cifs-utils] cldap_ping.c: add missing <sys/types.h> include Paulo Alcantara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241226204235.2311371-1-thomas.petazzoni@bootlin.com \
--to=thomas.petazzoni@bootlin.com \
--cc=linux-cifs@vger.kernel.org \
--cc=pshilovsky@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox