diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-11-26 19:13:12 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-11-26 19:13:12 +0200 |
commit | 094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8 (patch) | |
tree | c9eaab424dacf2b29f3942541bc800c686d04e8d /lib/regexec.c | |
parent | 52eca2d3bdef293e9f5d64aa2b9ca36f1e00e817 (diff) | |
download | emacs-094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8.tar.gz emacs-094eb04ce5d8c1ccef78113c8cc6791d1d3b6bf8.tar.bz2 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 'lib/regexec.c')
0 files changed, 0 insertions, 0 deletions