]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build on Cygwin
authorEric Blake <eblake@redhat.com>
Mon, 13 Jun 2011 23:50:09 +0000 (17:50 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 3 Dec 2011 20:03:44 +0000 (13:03 -0700)
commitc74a2a03f025169e8d6c3e5ddc970963c1c76418
tree42766dc11df97a69b6262b29d07d4e2f7c0afa8c
parent75da3200876a8b92ab78b15d3772809fef794faf
build: fix build on Cygwin

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.

* src/rpc/genprotocol.pl: Also perform fixups on cygwin.
* src/util/virnetdev.c (HAVE_STRUCT_IFREQ): Also require AF_PACKET
definition.
* src/util/virnetdevbridge.c (virNetDevSetupControlFull): Only
compile if SIOCBRADDBR works.
src/rpc/genprotocol.pl
src/util/virnetdev.c
src/util/virnetdevbridge.c