Fix GDB compilation on MinGW (PR gdb/24292)
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Mar 2019 13:13:54 +0000 (15:13 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Mar 2019 13:13:54 +0000 (15:13 +0200)
commit41fa577fbc326402be49b3f03bc828e52dba8b88
treea3fd0037cc7b54e522697d9694ec2a1c8a541360
parentca5a17b09eabb24301c8591440670613385a9026
Fix GDB compilation on MinGW (PR gdb/24292)

gdb/ChangeLog:

2019-03-02  Eli Zaretskii  <eliz@gnu.org>

PR gdb/24292
* common/netstuff.c:
* gdbserver/gdbreplay.c
* gdbserver/remote-utils.c:
* ser-tcp.c:
* unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
Include ws2tcpip.h instead of wsiapi.h and winsock2.h.  Redefine
_WIN32_WINNT to 0x0501 if defined to a smaller value, as
'getaddrinfo' and 'freeaddrinfo' were not available before
Windows XP, and mingw.org's MinGW headers by default define
_WIN32_WINNT to 0x500.
gdb/ChangeLog
gdb/common/netstuff.c
gdb/gdbserver/gdbreplay.c
gdb/gdbserver/remote-utils.c
gdb/ser-tcp.c
gdb/unittests/parse-connection-spec-selftests.c