From 0fe595ea00139c809c9affd80e6b62d1966e677a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 8 Oct 2022 15:14:57 -0400 Subject: [PATCH] Fix warning anywhere netwrap.h is included before sockwrap.h sbbs3/../xpdev/netwrap.h:45:27: warning: 'parseIPv6Address' has C-linkage specified, but returns incomplete type 'struct in6_addr' which could be incompatible with C [-Wreturn-type-c-linkage] DLLEXPORT struct in6_addr parseIPv6Address(const char*); ^ --- src/xpdev/netwrap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xpdev/netwrap.h b/src/xpdev/netwrap.h index 5ed25ebdf4..c1dffd8f20 100644 --- a/src/xpdev/netwrap.h +++ b/src/xpdev/netwrap.h @@ -29,6 +29,8 @@ #if defined(_WIN32) #include <winsock2.h> #include <ws2tcpip.h> // struct in6_addr +#else + #include <netinet/in.h> #endif #define IPv4_LOCALHOST 0x7f000001U /* 127.0.0.1 */ -- GitLab