]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/server/util.c: include netinet/in6.h
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2025 15:12:14 +0000 (17:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2025 18:04:14 +0000 (20:04 +0200)
for sockaddr_in6

Reported-by: Randall S. Becker
Bug: https://curl.se/mail/lib-2025-06/0016.html
Closes #17695

tests/server/util.c

index 9c8d279cee9a9e2693dbaa8e997133b29a74df53..f21c3eaafd6a5d1a7961f8081304bd79def42d21 100644 (file)
@@ -29,6 +29,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
 #ifdef _XOPEN_SOURCE_EXTENDED
 /* This define is "almost" required to build on HP-UX 11 */
 #include <arpa/inet.h>