]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/unittests/parse-connection-spec-selftests.c
Fix GDB compilation on MinGW (PR gdb/24292)
[thirdparty/binutils-gdb.git] / gdb / unittests / parse-connection-spec-selftests.c
index ac7cd41e21229f1c3136b4bd509e4fcafd7d79f0..969c51e4e88da5abbe593cfbaca891c72b9ef91b 100644 (file)
 #include "common/netstuff.h"
 #include "diagnostics.h"
 #ifdef USE_WIN32API
-#include <winsock2.h>
-#include <wspiapi.h>
+#if _WIN32_WINNT < 0x0501
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x0501
+#endif
+#include <ws2tcpip.h>
 #else
 #include <netinet/in.h>
 #include <arpa/inet.h>