[libvirt] [PATCH] fix MinGW compilation(200808)

Atsushi SAKAI sakaia at jp.fujitsu.com
Fri Aug 8 04:27:12 UTC 2008


Hi, Dan

mkstemp is solved by Jim.

But WEXITSTATUS problem is not solved yet.
Since sys/wait.h does not exist on MinGW.
http://www.mingw.org/MinGWiki/index.php/PortingChildren

Thanks
Atsushi SAKAI




"Daniel P. Berrange" <berrange at redhat.com> wrote:

> On Thu, Aug 07, 2008 at 05:56:48PM +0900, Atsushi SAKAI wrote:
> > Hi, Jim
> > 
> > Your patch works fine. It passes inet_pton problem.
> > Please apply it.
> > 
> > By the way, virsh compilation error.
> > Is threre any good suggestion?
> > =========
> > virsh-virsh.o: In function `editWriteToTempFile':
> > C:/msys/1.0/home/Administrator/work/libvirt/src/virsh.c:5080: undefined reference to `mkstemp'
> 
> Look like there is a gnulib module for that - Jim could say if its license
> compatible
> 
> > virsh-virsh.o: In function `editFile':
> > C:/msys/1.0/home/Administrator/work/libvirt/src/virsh.c:5155: undefined reference to `WEXITSTATUS'
> 
> virsh.c seems to be missing  '#include <sys/wait.h>'
> 
> Daniel
> -- 
> |: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
> |: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
> |: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
> |: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|





More information about the libvir-list mailing list