summaryrefslogtreecommitdiff
path: root/ext/Errno/Errno_pm.PL
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Errno/Errno_pm.PL')
-rw-r--r--ext/Errno/Errno_pm.PL2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 424f0f3b4c..dc8eaba8b0 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -40,6 +40,8 @@ else {
}
write_errno_pm();
unlink "errno.c" if -f "errno.c";
+close OUT or die "Error closing Errno.tmp: $!";
+select STDOUT;
rename "Errno.tmp", "Errno.pm" or die "Cannot rename Errno.tmp to Errno.pm: $!";
sub process_file {