diff options
author | Eric Blake <eblake@redhat.com> | 2011-06-13 17:50:09 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-12-03 13:03:44 -0700 |
commit | c74a2a03f025169e8d6c3e5ddc970963c1c76418 (patch) | |
tree | 42766dc11df97a69b6262b29d07d4e2f7c0afa8c /src/rpc/genprotocol.pl | |
parent | 75da3200876a8b92ab78b15d3772809fef794faf (diff) | |
download | libvirt-c74a2a03f025169e8d6c3e5ddc970963c1c76418.tar.gz |
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.
Diffstat (limited to 'src/rpc/genprotocol.pl')
-rwxr-xr-x | src/rpc/genprotocol.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/genprotocol.pl b/src/rpc/genprotocol.pl index 166508b649..7af1b3bd12 100755 --- a/src/rpc/genprotocol.pl +++ b/src/rpc/genprotocol.pl @@ -31,7 +31,7 @@ open RPCGEN, "-|", $rpcgen, $mode, $xdrdef open TARGET, ">$target" or die "cannot create $target: $!"; -my $fixup = $^O eq "linux"; +my $fixup = $^O eq "linux" || $^O eq "cygwin"; if ($mode eq "-c") { print TARGET "#include <config.h>\n"; |