[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests c
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname |
Date: |
Wed, 22 Aug 2012 09:32:02 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Aug 22, 2012 at 10:04:33AM +0200, Guido Günther 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ünther wrote:
> [..snip..]
> >
> > Why no impl ? Winsock has the gethostname() API too
> >
> > $ 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);
>
> This was mostly due to the lack of a test system. Are there any pointers
> on how to cross compile qemu-qa for Windows?
Assuming you have the Mingw64 toolchain installed, then compilation is just
a case of passing the --cross-prefix arg to configure. eg on Fedora 17 I
would do:
./configure --target-list=x86_64-softmmu --cross-prefix=i686-w64-mingw32-
which causes it to use i686-w64-mingw32-gcc as the compiler
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|