diff options
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 575e77c63a..93790af279 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -27,7 +27,11 @@ sub process_file { warn "Cannot open '$file'"; return; } - } elsif ($Config{gccversion} ne '') { + } elsif ($Config{gccversion} ne '' && + # OpenSTEP has gcc 2.7.2.1 which recognizes but + # doesn't implement the -dM flag. + $^O ne 'next4' + ) { # With the -dM option, gcc outputs every #define it finds unless(open(FH,"$Config{cc} -E -dM $Config{cppflags} $file |")) { warn "Cannot open '$file'"; |