Commit ab966109 authored by Wayne Davison's avatar Wayne Davison

Use older open() style for compatibility with older perl versions.

parent c8dccf8f
......@@ -2,7 +2,7 @@
use strict;
my $old_protos = '';
if (open(IN, '<', 'proto.h')) {
if (open(IN, 'proto.h')) {
$old_protos = join('', <IN>);
close IN;
}
......@@ -45,7 +45,7 @@ while (<>) {
}
if ($old_protos ne $protos) {
open(OUT, '>', 'proto.h') or die $!;
open(OUT, '>proto.h') or die $!;
print OUT $protos;
close OUT;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment