summaryrefslogtreecommitdiff
path: root/warnings.pl
diff options
context:
space:
mode:
Diffstat (limited to 'warnings.pl')
-rw-r--r--warnings.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/warnings.pl b/warnings.pl
index 24246f5366..aae186efad 100644
--- a/warnings.pl
+++ b/warnings.pl
@@ -253,7 +253,9 @@ if (@ARGV && $ARGV[0] eq "tree")
unlink "warnings.h";
unlink "lib/warnings.pm";
open(WARN, ">warnings.h") || die "Can't create warnings.h: $!\n";
+binmode WARN;
open(PM, ">lib/warnings.pm") || die "Can't create lib/warnings.pm: $!\n";
+binmode PM;
print WARN <<'EOM' ;
/* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!