summaryrefslogtreecommitdiff
path: root/lib/curl_addrinfo.c
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2021-06-04 15:03:30 +0800
committerDaniel Stenberg <daniel@haxx.se>2021-06-21 14:52:27 +0200
commit30e491e5c921aecca5a16083d8185840dc64eccd (patch)
tree66cb4ebe7d4e68a4fdafe17e713e25236d288d2c /lib/curl_addrinfo.c
parent62be0960858f18798f5f2bf662cbfd9ae3948eb4 (diff)
downloadcurl-30e491e5c921aecca5a16083d8185840dc64eccd.tar.gz
cmake: fix support for UnixSockets feature on Win32
Move the definition of sockaddr_un struct from config-win32.h to curl_setup.h, so that it could be shared by all build systems. Add ADDRESS_FAMILY typedef for old mingw, now old mingw can also use unix sockets. Also fix the build of tests/server/sws.c on Win32 when USE_UNIX_SOCKETS is defined. Closes #7034
Diffstat (limited to 'lib/curl_addrinfo.c')
-rw-r--r--lib/curl_addrinfo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 1d5067bc0..842fd7fe2 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -50,12 +50,6 @@
# 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"