Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFJPD-0004qG-Io for qemu-devel@nongnu.org; Sat, 05 Jul 2008 21:51:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFJPC-0004px-8M for qemu-devel@nongnu.org; Sat, 05 Jul 2008 21:51:11 -0400 Received: from [199.232.76.173] (port=37085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFJPC-0004po-1O for qemu-devel@nongnu.org; Sat, 05 Jul 2008 21:51:10 -0400 Received: from mail.gmx.net ([213.165.64.20]:40747) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KFJPB-0004wm-9K for qemu-devel@nongnu.org; Sat, 05 Jul 2008 21:51:09 -0400 Date: Sun, 6 Jul 2008 03:51:05 +0200 (CEST) From: Johannes Schindelin Subject: Re: [Qemu-devel] [PATCH] Fix compilation of nbd on Windows In-Reply-To: <20080705224121.GA1787@shareable.org> Message-ID: References: <20080704092849.5BC0.20F538E7@nsfocus.com> <20080704023451.GO7007@networkno.de> <20080704115101.5BC9.20F538E7@nsfocus.com> <1215160927.3802.4.camel@frecb07144> <20080704203231.GB31670@networkno.de> <5b31733c0807050458w41aebd89re70cc859602c3681@mail.gmail.com> <20080705224121.GA1787@shareable.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Laurent Vivier , qemu-devel@nongnu.org, chenqing Hi, On Sat, 5 Jul 2008, Jamie Lokier wrote: > Filip Navara wrote: > > Closing sockets with "close" doesn't work on WinSock. Add "#define > > close closesocket" to the top of file to fix it. Yep, seems like I missed that, in spite of having looked at some sample code of mine. > Socket error handling is different too, you might want to check any > places errno is used in the socket code. Now, that is funny, as ... > Or look at the rest of QEMU, which surely does some Windows networking. ... I did exactly that, and copied the GetLastError() part from there. Puzzled, Dscho