From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T46MG-00074R-Az for qemu-devel@nongnu.org; Wed, 22 Aug 2012 04:32:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T46MA-0000rE-Ed for qemu-devel@nongnu.org; Wed, 22 Aug 2012 04:32:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T46MA-0000rA-61 for qemu-devel@nongnu.org; Wed, 22 Aug 2012 04:32:06 -0400 Date: Wed, 22 Aug 2012 09:32:02 +0100 From: "Daniel P. Berrange" Message-ID: <20120822083202.GB22908@redhat.com> References: <20120821115754.GA5855@bogon.sigxcpu.org> <20120821183117.GA18191@redhat.com> <20120822080433.GB11269@bogon.sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120822080433.GB11269@bogon.sigxcpu.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Guido =?utf-8?Q?G=C3=BCnther?= Cc: qemu-devel@nongnu.org On Wed, Aug 22, 2012 at 10:04:33AM +0200, Guido G=C3=BCnther wrote: > On Tue, Aug 21, 2012 at 07:31:17PM +0100, Daniel P. Berrange wrote: > > On Tue, Aug 21, 2012 at 01:57:54PM +0200, Guido G=C3=BCnther wrote: > [..snip..] > >=20 > > Why no impl ? Winsock has the gethostname() API too > >=20 > > $ grep gethostname /usr/i686-w64-mingw32/sys-root/mingw/include/*.h > > /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h: WINSOCK_API= _LINKAGE int WSAAPI gethostname(char *name,int namelen); >=20 > This was mostly due to the lack of a test system. Are there any pointer= s > on how to cross compile qemu-qa for Windows? Assuming you have the Mingw64 toolchain installed, then compilation is ju= st a case of passing the --cross-prefix arg to configure. eg on Fedora 17 I would do: ./configure --target-list=3Dx86_64-softmmu --cross-prefix=3Di686-w64-mi= ngw32- which causes it to use i686-w64-mingw32-gcc as the compiler Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|