windows: assume ADDRESS_FAMILY, drop feature checks

Early mingw-w64 releases missed it, but by requiring v3.0, this is no
longer an issue. Supported Visual Studio SDKs also offer it.

Follow-up to a28f5f68b9 #18010
Closes #18057
This commit is contained in:
Viktor Szakats 2025-07-25 15:48:35 +02:00
parent 3bdef96aba
commit c4ed28aebb
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 11 additions and 36 deletions

View file

@ -336,9 +336,6 @@
/* Define to 1 if symbol `sa_family_t' exists */
#cmakedefine HAVE_SA_FAMILY_T 1
/* Define to 1 if symbol `ADDRESS_FAMILY' exists */
#cmakedefine HAVE_ADDRESS_FAMILY 1
/* Define to 1 if you have the ioctlsocket function. */
#cmakedefine HAVE_IOCTLSOCKET 1

View file

@ -937,10 +937,10 @@ endings either CRLF or LF so 't' is appropriate.
/* for systems that do not detect this in configure */
#ifndef CURL_SA_FAMILY_T
# ifdef HAVE_SA_FAMILY_T
# define CURL_SA_FAMILY_T sa_family_t
# elif defined(HAVE_ADDRESS_FAMILY)
# if defined(_WIN32) && !defined(UNDER_CE)
# define CURL_SA_FAMILY_T ADDRESS_FAMILY
# elif defined(HAVE_SA_FAMILY_T)
# define CURL_SA_FAMILY_T sa_family_t
# elif defined(__AMIGA__)
# define CURL_SA_FAMILY_T unsigned char
# else