aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorEli Zaretskii2019-11-26 19:13:12 +0200
committerEli Zaretskii2019-11-26 19:13:12 +0200
commit094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8 (patch)
treec9eaab424dacf2b29f3942541bc800c686d04e8d /test/data
parent52eca2d3bdef293e9f5d64aa2b9ca36f1e00e817 (diff)
downloademacs-094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8.tar.gz
emacs-094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8.zip
Fix MS-Windows build with mingw.org's MinGW
mingw.org's MinGW by default targets Windows 9X, so _WIN32_WINNT is set to a value that bypasses declarations in system headers we need to compile network_interface_list. Also, the code needed a workaround for Windows XP, where some functionality is missing from the GetAdaptersAddresses API. * src/w32.c (_WIN32_WINNT): Define to 0x0501, if the value is lower, temporarily while processing iphlpapi.h. (address_prefix_match): New helper function. (network_interface_list): Work around the fact that the OnLinkPrefixLength member of IP_ADAPTER_UNICAST_ADDRESS is not available when _WIN32_WINNT < 0x0600. On Windows XP use special code that calls address_prefix_match to compute the network prefix length.
Diffstat (limited to 'test/data')
0 files changed, 0 insertions, 0 deletions