Drop apparently unneeded include of winsock2.h
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 2 Nov 2022 14:32:55 +0000 (14:32 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Sun, 13 Nov 2022 14:44:43 +0000 (14:44 +0000)
Commit d08bae3d ("Implement target async for Windows") unconditionally
includes winsock2.h.  We don't want to do that on Cygwin, since
including both winsock2.h and sys/select.h causes incompatible
redefinition problems.

Since that include is apparently unneeded, just drop it.

Fixes: d08bae3d
gdb/windows-nat.c

index ab94de03bbf33e041205e0166e20dd96f46ba6fa..6250cbc27a537179f195876bf76700b375b79804 100644 (file)
@@ -34,7 +34,6 @@
 #include <signal.h>
 #include <sys/types.h>
 #include <fcntl.h>
-#include <winsock2.h>
 #include <windows.h>
 #include <imagehlp.h>
 #ifdef __CYGWIN__