1 parent 002903d commit a14ca44Copy full SHA for a14ca44
1 file changed
lib/curl_addrinfo.c
@@ -46,8 +46,10 @@
46
47
#if defined(USE_UNIX_SOCKETS) && defined(WINAPI_FAMILY) && \
48
((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)
+ /* Required for sockaddr_un type — skip if curl_setup.h's local typedef
+ 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)
53
# include <afunix.h>
54
# endif
55
#endif
0 commit comments