summaryrefslogtreecommitdiff
path: root/scripts/dheadgen.pl
diff options
context:
space:
mode:
authorMySQL Build Team <build@mysql.com>2009-06-04 18:47:38 +0200
committerMySQL Build Team <build@mysql.com>2009-06-04 18:47:38 +0200
commit8ad237190a8d3ae259570a9018de06cad76becc6 (patch)
tree1cd8246b31eaf2ef21d833ff366fe214edb2bdd7 /scripts/dheadgen.pl
parent508084bca621a1ad80ba23a49d6d33414fe5f837 (diff)
downloadmariadb-git-8ad237190a8d3ae259570a9018de06cad76becc6.tar.gz
Some portability fixes.
include/Makefile.am: use @PERL@ to call scripts/dheadgen.pl - don't rely on #! /usr/bin/perl scripts/dheadgen.pl: use 2-arg open() for compatibility with older Perl versions storage/innobase/srv/srv0srv.c: Don't use C++-style comments in C code
Diffstat (limited to 'scripts/dheadgen.pl')
-rwxr-xr-xscripts/dheadgen.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/dheadgen.pl b/scripts/dheadgen.pl
index 5ead0f90a31..374b232a04e 100755
--- a/scripts/dheadgen.pl
+++ b/scripts/dheadgen.pl
@@ -267,23 +267,23 @@ usage() if ($infile !~ /(.+)\.d$/);
# If the system has native support for DTrace, we'll use that binary instead.
#
if (-x '/usr/sbin/dtrace' && !$force) {
- open(my $dt, '-|', "/usr/sbin/dtrace -C -h -s $infile -o /dev/stdout")
+ open(DTRACE, "-| /usr/sbin/dtrace -C -h -s $infile -o /dev/stdout")
or die "can't invoke dtrace(1M)";
- while (<$dt>) {
+ while (<DTRACE>) {
emit_dtrace($_);
}
- close($dt);
+ close(DTRACE);
exit(0);
}
emit_prologue($infile);
-open(my $d, '<', $infile) or die "couldn't open $infile";
-@lines = <$d>;
-close($d);
+open(D, "< $infile") or die "couldn't open $infile";
+@lines = <D>;
+close(D);
while (1) {
my $nl = 0;