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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx> wrote:
> 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?

Hi Atsushi,

Yes, git provides MinGW support, and I see it's compat/mingw.h
includes this line:

#define WEXITSTATUS(x) ((x) & 0xff)

Could it be as easy as adding this?

  #ifndef WEXITSTATUS
  # define WEXITSTATUS(x) ((x) & 0xff)
  #endif

gnulib provides heavy-weight (different API, and GPL'd) support for
running subprocesses via its execute module, but it targets more
than just MinGW.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]