summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doffman <mark.doffman@codethink.co.uk>2014-03-11 18:13:09 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-04 18:09:50 +0000
commite3ea7baf6a6e5625cea7b20c911c4333b79e72e2 (patch)
tree85b829188442431836849b90d5371d9d2d0a946d
parent1712107afd6d45bf28f036ac8dd1e8cd2131a170 (diff)
downloadlibvirt-e3ea7baf6a6e5625cea7b20c911c4333b79e72e2.tar.gz
Fix for rpcgen, cpp location issue.
Should not be neccessary when rpcgen is updated in the future.
-rwxr-xr-xsrc/rpc/genprotocol.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rpc/genprotocol.pl b/src/rpc/genprotocol.pl
index 6e6d6d4a93..00466de55c 100755
--- a/src/rpc/genprotocol.pl
+++ b/src/rpc/genprotocol.pl
@@ -36,9 +36,12 @@ my $mode = shift;
my $xdrdef = shift;
my $target = shift;
+my $cppopt = "-Y";
+my $cpppath = "/usr/bin";
+
unlink $target;
-open RPCGEN, "-|", $rpcgen, $mode, $xdrdef
+open RPCGEN, "-|", $rpcgen, $cppopt, $cpppath, $mode, $xdrdef
or die "cannot run $rpcgen $mode $xdrdef: $!";
open TARGET, ">$target"
or die "cannot create $target: $!";