Skip to content

Commit

Permalink
configure.ac: fix location of NUT_CHECK_HEADER_IPHLPAPI call [network…
Browse files Browse the repository at this point in the history
…upstools#2516]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 9, 2024
1 parent 7ebbede commit 057ae96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1475,11 +1475,12 @@ dnl For `nut-scanner -m auto` modes, see also:
dnl https://stackoverflow.com/a/41151132/4715872
dnl https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses (since ~Windows Vista)
dnl https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersinfo (before Windows XP; not recommended later)
dnl Must check in global context, to have it not-defined where appropriate too
NUT_CHECK_HEADER_IPHLPAPI
AC_CHECK_FUNCS([getifaddrs], [], [
AS_CASE([${target_os}],
[*mingw*], [
dnl Check for GetAdaptersAddresses / GetAdaptersInfo
NUT_CHECK_HEADER_IPHLPAPI
AS_IF([test x"${nut_cv_header_iphlpapi_h}" = xyes], [
myIPHLPAPI_TEST_HEADERS='
Expand Down

0 comments on commit 057ae96

Please sign in to comment.