diff options
author | Wayne Davison <wayned@samba.org> | 2007-11-09 18:15:52 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-11-09 18:15:52 +0000 |
commit | ab9661098674ee9896cade4c3098100b14c94c93 (patch) | |
tree | 4c46cd3b377590e51005407a94dd7143a09bbfcc /mkproto.pl | |
parent | c8dccf8fb4949ad8f2c25f86808b517a5b30faf9 (diff) | |
download | rsync-ab9661098674ee9896cade4c3098100b14c94c93.tar.gz rsync-ab9661098674ee9896cade4c3098100b14c94c93.tar.bz2 rsync-ab9661098674ee9896cade4c3098100b14c94c93.zip |
Use older open() style for compatibility with older perl versions.
Diffstat (limited to 'mkproto.pl')
-rw-r--r-- | mkproto.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |