Skip to content

Commit a14ca44

Browse files
committed
fix win comp
1 parent 002903d commit a14ca44

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎lib/curl_addrinfo.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646

4747
#if defined(USE_UNIX_SOCKETS) && defined(WINAPI_FAMILY) && \
4848
((WINAPI_FAMILY == WINAPI_FAMILY_APP) || (WINAPI_FAMILY == WINAPI_FAMILY_GAMES) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
49-
/* Required for sockaddr_un type */
50-
# if !defined(WIN32_SOCKADDR_UN)
49+
/* Required for sockaddr_un type — skip if curl_setup.h's local typedef
50+
already ran (it defines UNIX_PATH_MAX) or if afunix.h was pulled in
51+
earlier in the translation unit. */
52+
# if !defined(UNIX_PATH_MAX)
5153
# include <afunix.h>
5254
# endif
5355
#endif

0 commit comments

Comments
 (0)