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 :|