aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/parse-connection-spec-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests/parse-connection-spec-selftests.c')
-rw-r--r--gdb/unittests/parse-connection-spec-selftests.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/unittests/parse-connection-spec-selftests.c b/gdb/unittests/parse-connection-spec-selftests.c
index ac7cd41..969c51e 100644
--- a/gdb/unittests/parse-connection-spec-selftests.c
+++ b/gdb/unittests/parse-connection-spec-selftests.c
@@ -22,8 +22,11 @@
#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>