From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 9CA173858284; Sun, 13 Nov 2022 14:45:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CA173858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668350743; bh=b9vOhs3EfS2ISurvsxkN6M5U+iME6iIPnfBSKpMfjjA=; h=From:To:Subject:Date:From; b=bkANpUlMBbMzvlxraZjKvSme53m0w3ODriJhIhEoUuRs2hsSOamMJx7e7LvZIipsb uUBZ5hstC/45CPMsEM4QmTjhoteT1tNqSPGnFiU2lXSV2Yte2VNaaPk7liAKZ66Vwp Cz/n/qTrp+nUgC2PR/HzWXzsa9/8hYpNtr2uTUao= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon TURNEY To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Drop apparently unneeded include of winsock2.h X-Act-Checkin: binutils-gdb X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 28ebf3f8d07e81efc06ce00f91fc542c7d6e0327 X-Git-Newrev: 90f902daf5edb817d57b5e377d7ad54948a5a9f4 Message-Id: <20221113144543.9CA173858284@sourceware.org> Date: Sun, 13 Nov 2022 14:45:43 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D90f902daf5ed= b817d57b5e377d7ad54948a5a9f4 commit 90f902daf5edb817d57b5e377d7ad54948a5a9f4 Author: Jon Turney Date: Wed Nov 2 14:32:55 2022 +0000 Drop apparently unneeded include of winsock2.h =20 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. =20 Since that include is apparently unneeded, just drop it. =20 Fixes: d08bae3d Diff: --- gdb/windows-nat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index ab94de03bbf..6250cbc27a5 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #ifdef __CYGWIN__