diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c index 842fd7fe24..1d5067bc00 100644 --- a/lib/curl_addrinfo.c +++ b/lib/curl_addrinfo.c @@ -50,6 +50,12 @@ # define in_addr_t unsigned long #endif +#if defined(USE_UNIX_SOCKETS) && defined(WINAPI_FAMILY) && \ + (WINAPI_FAMILY == WINAPI_FAMILY_APP) + /* Required for sockaddr_un type */ +# include +#endif + #include #include "curl_addrinfo.h"