summaryrefslogtreecommitdiff
path: root/src/rpc/genprotocol.pl
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2017-09-18 14:35:50 +0200
committerAndrea Bolognani <abologna@redhat.com>2017-09-19 16:04:53 +0200
commit90b17aef1a43717f8813aa088564950cc06650b8 (patch)
treed2e166fb2b86cf82e1983160d4ebd8b6ff5225c9 /src/rpc/genprotocol.pl
parent8406769642abd6bf9558d5585490c7a5485302c1 (diff)
downloadlibvirt-90b17aef1a43717f8813aa088564950cc06650b8.tar.gz
perl: Don't hardcode interpreter path
This is particularly useful on operating systems that don't ship Perl as part of the base system (eg. FreeBSD) while still working just as well as it did before on Linux. In one case (src/rpc/genprotocol.pl) the interpreter path was missing altogether. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Diffstat (limited to 'src/rpc/genprotocol.pl')
-rwxr-xr-xsrc/rpc/genprotocol.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/genprotocol.pl b/src/rpc/genprotocol.pl
index 69d20a3447..6ce268c024 100755
--- a/src/rpc/genprotocol.pl
+++ b/src/rpc/genprotocol.pl
@@ -1,3 +1,4 @@
+#!/usr/bin/env perl
#
# Generate code for an XDR protocol, optionally applying
# fixups to the glibc rpcgen code so that it compiles