mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08: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:
parent
781864bedb
commit
79a05e1f08
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user