diff options
author | Ivan Zhakov <ivan@apache.org> | 2022-07-08 17:27:05 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2022-07-08 17:27:05 +0000 |
commit | e0132550068aab858bac67b5dbb409ccc14a3e20 (patch) | |
tree | 9120d117f87eee683eb78b9bf41895102e681527 /include | |
parent | d95196a67c0b1a3e2df6b808b94d019a536038dd (diff) | |
download | apr-e0132550068aab858bac67b5dbb409ccc14a3e20.tar.gz |
win32: Fix build with IPv6 disabled.
* include/arch/win32/apr_arch_misc.h:
(if_nametoindex, if_indextoname): Declare only if HAVE_IF_NAMETOINDEX/
HAVE_IF_INDEXTONAME.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/arch/win32/apr_arch_misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/arch/win32/apr_arch_misc.h b/include/arch/win32/apr_arch_misc.h index 057f4adfa..fb5bb6102 100644 --- a/include/arch/win32/apr_arch_misc.h +++ b/include/arch/win32/apr_arch_misc.h @@ -267,6 +267,7 @@ APR_DECLARE_LATE_DLL_FUNC(DLL_WINBASEAPI, BOOL, WINAPI, Process32NextW, 0, ( #define HAVE_POLL 1 +#if HAVE_IF_NAMETOINDEX #ifdef if_nametoindex #undef if_nametoindex #endif @@ -274,7 +275,9 @@ APR_DECLARE_LATE_DLL_FUNC(DLL_IPHLPAPI, NET_IFINDEX, WINAPI, if_nametoindex, 0, IN PCSTR InterfaceName), (InterfaceName)); #define if_nametoindex apr_winapi_if_nametoindex +#endif +#if HAVE_IF_INDEXTONAME #ifdef if_indextoname #undef if_indextoname #endif @@ -283,6 +286,7 @@ APR_DECLARE_LATE_DLL_FUNC(DLL_IPHLPAPI, PCHAR, NETIOAPI_API_, if_indextoname, 0, PCHAR InterfaceName), (InterfaceIndex, InterfaceName)); #define if_indextoname apr_winapi_if_indextoname +#endif APR_DECLARE_LATE_DLL_FUNC(DLL_API_MS_WIN_DOWNLEVEL_SHELL32_L1_1_0, LPWSTR *, STDAPICALLTYPE, CommandLineToArgvW, 0, |