1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

build: fix compilation for Windows UWP platform

- 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
This commit is contained in:
dmitrykos 2021-05-04 17:54:21 +03:00 committed by Jay Satiro
parent 781864bedb
commit 79a05e1f08

View File

@ -50,6 +50,12 @@
# define in_addr_t unsigned long # define in_addr_t unsigned long
#endif #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 <stddef.h>
#include "curl_addrinfo.h" #include "curl_addrinfo.h"