summaryrefslogtreecommitdiff
path: root/ext/Errno
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-26 03:01:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-26 03:01:01 +0000
commit8ff7320bf5679e744f05871cb93b15638cca1144 (patch)
tree07c010dbb8dc37d86bc19b0939c86449e9cd24e8 /ext/Errno
parent81633404b8cc72cb23540daaec550f7a835d0990 (diff)
downloadperl-8ff7320bf5679e744f05871cb93b15638cca1144.tar.gz
OpenSTEP has gcc 2.7.2.1 which recognizes but does not implement
the -dM flag, from Daniel Ashton <jdashton@AshtonFam.org>. p4raw-id: //depot/perl@10947
Diffstat (limited to 'ext/Errno')
-rw-r--r--ext/Errno/Errno_pm.PL6
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'";