Starting with version 13.x, the mingw headers will define the value of
NTDDI_VERSION
, based on the value of _WIN32_WINNT
, if that version is <
Windows 10. Given that libevent was undefining our _WIN32_WINNT
, and
redefining it to a value < Windows 10 (0x0501
), NTDDI_VERSION
was also
being defined to that value, leading to functions not being exposed in
the mingw-w64 headers; see here: https://github.com/mingw-w64/mingw-w64/blob/9c2668ef77e75ea4d8a6c7d100b14643269caec3/mingw-w64-headers/include/iphlpapi.h#L36-L41.
Imports a commit from usptream (a14ff91254f40cf36e0fee199e26fb11260fab49).
Fixes #32707.