When building using CMake:
C:\PROGRA~1\MIB055~1\2022\PROFES~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe
/nologo -DAPR_APP -DWINNT -IC:\Ivan\SVN\apr\apr-1.8.x\out\build\x64-Debug
-IC:\Ivan\SVN\apr\apr-1.8.x\include
-IC:\Ivan\SVN\apr\apr-1.8.x\include\arch\win32
-IC:\Ivan\SVN\apr\apr-1.8.x\in
Not sure what you have going on here. A too-old flavor of the Windows
SDK, or a bad choice
of the minimum SDK version? It seems the HAVE_IF_INDEXTONAME is set in the
include/arch/win32/apr_private.h, which is included by
include/arch/win32/apr_arch_misc.h,
which then does this;
#if defined(HAVE_IF_