[libvirt] [PATCH] build: fix build on cygwin

2014-08-02 Thread Eric Blake
Cygwin has getifaddrs(), but not AF_LINK, leading to: util/virstats.c: In function 'virNetInterfaceStats': util/virstats.c:138:41: error: 'AF_LINK' undeclared (first use in this function) if (ifa-ifa_addr-sa_family != AF_LINK) ... * src/util/virstats.c (virNetInterfaceStats): Only use

[libvirt] [PATCH] build: fix build on cygwin

2012-05-03 Thread Eric Blake
Now that tests are built unconditionally, this cases 'make' to fail on cygwin (previously, only 'make check' failed), since on cygwin, rpc/rpc.h lives in a different directory than /usr/include. * tests/Makefile.am (virnetmessagetest_CFLAGS): Find rpc headers. --- Pushing under the build-breaker

[libvirt] [PATCH] build: fix build on cygwin

2012-03-30 Thread Eric Blake
Regression introduced when we changed types in commit 3e2c3d8f6. We've done this sort of cleanup before (see commit c685993d7). * src/conf/storage_conf.c (virStoragePoolDefFormat) (virStorageVolTargetDefFormat): Cast gid_t and uid_t. --- Pushing under the build-breaker rule.

Re: [libvirt] [PATCH] build: fix build on Cygwin

2011-12-05 Thread Daniel P. Berrange
On Sat, Dec 03, 2011 at 01:03:08PM -0700, Eric Blake wrote: The RPC fixups needed on Linux are also needed on cygwin, and worked without further tweaking to the list of fixups. Also, unlike BSD, Cygwin exports 'struct ifreq', but unlike Linux, Cygwin lacks the ioctls that we were using

[libvirt] [PATCH] build: fix build on Cygwin

2011-12-03 Thread Eric Blake
The RPC fixups needed on Linux are also needed on cygwin, and worked without further tweaking to the list of fixups. Also, unlike BSD, Cygwin exports 'struct ifreq', but unlike Linux, Cygwin lacks the ioctls that we were using 'struct ifreq' to access. This patch allows compilation under cygwin.