]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: fix compilation for Windows UWP platform
authordmitrykos <dmitrykos@neutroncode.com>
Tue, 4 May 2021 14:54:21 +0000 (17:54 +0300)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 5 May 2021 20:03:43 +0000 (16:03 -0400)
- Include afunix.h which is necessary for sockaddr_un when
  USE_UNIX_SOCKETS is defined on Windows.

Closes https://github.com/curl/curl/pull/7006

lib/curl_addrinfo.c

index 842fd7fe24bec5971cd57793b16afacfcfcdce25..1d5067bc00cb13374fc1e92a1574016dde9c569e 100644 (file)
 #  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 <afunix.h>
+#endif
+
 #include <stddef.h>
 
 #include "curl_addrinfo.h"