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

Atsushi SAKAI sakaia at jp.fujitsu.com
Mon Aug 11 06:59:19 UTC 2008


Hi, Jim

I am looking around the code about WEXITSTATUS.
It seems that following kind of code needs on gnulib.
http://kerneltrap.org/mailarchive/git/2008/2/27/1003054
What do you think?

Thanks
Atsushi SAKAI



Atsushi SAKAI <sakaia at jp.fujitsu.com> wrote:

> 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 :|
> 
> 
> --
> Libvir-list mailing list
> Libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list





More information about the libvir-list mailing list