Skip processing a file if the file to be opened is '-'
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 21 Nov 1999 16:07:20 +0000 (16:07 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 21 Nov 1999 16:07:20 +0000 (16:07 +0000)
(can happen in UNICOS)

p4raw-id: //depot/cfgperl@4596

ext/Errno/Errno_pm.PL

index 18260a9..ba0b281 100644 (file)
@@ -21,7 +21,7 @@ unlink "errno.c" if -f "errno.c";
 sub process_file {
     my($file) = @_;
 
-    return unless defined $file;
+    return if !defined $file || $file eq '-';
 
     local *FH;
     if (($^O eq 'VMS') && ($Config{vms_cc_type} ne 'gnuc')) {