From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUOGT-0005h2-Lh for qemu-devel@nongnu.org; Tue, 03 Feb 2009 11:36:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUOGS-0005gg-33 for qemu-devel@nongnu.org; Tue, 03 Feb 2009 11:36:45 -0500 Received: from [199.232.76.173] (port=36722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOGR-0005gb-W0 for qemu-devel@nongnu.org; Tue, 03 Feb 2009 11:36:44 -0500 Received: from smtp-out.google.com ([216.239.45.13]:18843) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUOGR-0006O3-4b for qemu-devel@nongnu.org; Tue, 03 Feb 2009 11:36:43 -0500 Received: from spaceape9.eur.corp.google.com (spaceape9.eur.corp.google.com [172.28.16.143]) by smtp-out.google.com with ESMTP id n13Gab6U004840 for ; Tue, 3 Feb 2009 08:36:38 -0800 Received: from yw-out-1718.google.com (ywm5.prod.google.com [10.192.13.5]) by spaceape9.eur.corp.google.com with ESMTP id n13GaXdv014646 for ; Tue, 3 Feb 2009 08:36:34 -0800 Received: by yw-out-1718.google.com with SMTP id 5so695721ywm.72 for ; Tue, 03 Feb 2009 08:36:33 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <49885BC5.3010406@codemonkey.ws> References: <49876B4C.9090806@bttr-software.de> <498773B6.7060301@codemonkey.ws> <4987F7F1.2040104@redhat.com> <49883914.2030904@codemonkey.ws> <20090203132841.GB15613@redhat.com> <49885BC5.3010406@codemonkey.ws> Date: Tue, 3 Feb 2009 17:36:33 +0100 Message-ID: <60cad3f0902030836u7f5c52a6m3eb81c6420cc6d74@mail.gmail.com> Subject: Re: [Qemu-devel] QEMU SVN on Windows 2000 :-( From: David Turner Content-Type: multipart/alternative; boundary=000e0cd40422308bff0462064644 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --000e0cd40422308bff0462064644 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit For the record, getaddrinfo() was introduced in Windows 2000 Professional and Server, see end of http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx (it's only missing from 2000 Workstation). you just need to add -DWINVER=0x501 to your CFLAGS to be able to have it properly declared (and linked to) with should be able to compile it with mingw hope this helps On Tue, Feb 3, 2009 at 3:59 PM, Anthony Liguori wrote: > Daniel P. Berrange wrote: > >> Well MinGW already builds fine with getaddrinfo(), so no need for a GPL >> header providing Wspiapi.h there. Since this is only needed for a few >> Win builds, why not just make the include conditional on whether that >> header actually exists. eg >> >> #ifdef HAVE_WSPIAPI_H >> #include >> #endif >> >> > > If that works, that's fine. > > Regards, > > Anthony Liguori > > Regards, >> Daniel >> >> > > > > --000e0cd40422308bff0462064644 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable For the record, getaddrinfo() was introduced in Windows 2000 Professional a= nd Server, see end of http://msdn.microsoft.com/en-us/library/ms738520(VS.85)= .aspx
(it's only missing from 2000 Workstation).

you just need to add = -DWINVER=3D0x501 to your CFLAGS to be able to have it properly declared (an= d linked to) with should be able to compile it with mingw

hope this = helps

On Tue, Feb 3, 2009 at 3:59 PM, Anthony Ligu= ori <anthony@= codemonkey.ws> wrote:
Daniel P. Berrange wrote:
Well MinGW already builds fine with getaddrinfo(), so no need for a GPL
header providing Wspiapi.h there. Since this is only needed for a few
Win builds, why not just make the include conditional on whether that heade= r actually exists. eg

#ifdef HAVE_WSPIAPI_H
#include <Wspiapi.h>
#endif
 

If that works, that's fine.

Regards,

Anthony Liguori

Regards,
Daniel
 




--000e0cd40422308bff0462064644--