From: Daniel Stenberg Date: Mon, 19 Apr 2021 21:28:12 +0000 (+0200) Subject: connect: use CURL_SA_FAMILY_T for portability X-Git-Tag: curl-7_77_0~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=355aae5b7ffcfdb464ec91df8f92c52b806a9c36;p=thirdparty%2Fcurl.git connect: use CURL_SA_FAMILY_T for portability Reported-by: Kevin R. Bulgrien Bug: https://curl.se/mail/lib-2021-04/0071.html Closes #6918 --- diff --git a/lib/connect.c b/lib/connect.c index 296fb62503..824ced31e9 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -660,7 +660,7 @@ bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, #endif #if defined(HAVE_SYS_UN_H) && defined(AF_UNIX) case AF_UNIX: - if(salen > (curl_socklen_t)sizeof(sa_family_t)) { + if(salen > (curl_socklen_t)sizeof(CURL_SA_FAMILY_T)) { su = (struct sockaddr_un*)sa; msnprintf(addr, MAX_IPADR_LEN, "%s", su->sun_path); }