iphlpapi: Check if getifaddrs really exists.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alexandre Julliard 2017-06-19 13:47:38 +02:00
parent 4e49ae3cc6
commit 7f23bbe7f9
4 changed files with 6 additions and 1 deletions

1
configure vendored
View File

@ -15403,6 +15403,7 @@ for ac_func in \
futimesat \
getattrlist \
getauxval \
getifaddrs \
getopt_long_only \
getpwuid \
gettimeofday \

View File

@ -2047,6 +2047,7 @@ AC_CHECK_FUNCS(\
futimesat \
getattrlist \
getauxval \
getifaddrs \
getopt_long_only \
getpwuid \
gettimeofday \

View File

@ -815,7 +815,7 @@ static DWORD getIPAddrRowByName(PMIB_IPADDRROW ipAddrRow, const char *ifName,
return ret;
}
#ifdef HAVE_IFADDRS_H
#if defined(HAVE_IFADDRS_H) && defined(HAVE_GETIFADDRS)
/* Counts the IPv4 addresses in the system using the return value from
* getifaddrs, returning the count.

View File

@ -204,6 +204,9 @@
/* Define to 1 if you have the `getauxval' function. */
#undef HAVE_GETAUXVAL
/* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS
/* Define to 1 if you have the `getnameinfo' function. */
#undef HAVE_GETNAMEINFO