From 022394cfaaa8ec20e603e5da621b1778fd79e4ad Mon Sep 17 00:00:00 2001 From: Charles Randall Date: Fri, 16 Nov 2001 01:31:57 -0800 Subject: Robustness against Linux using something else than gcc; based on Subject: [ID 20011116.124] perl 5.6.1 with Intel's icc on RedHat Linux 7.2 Message-Id: <20011116173157.2322.qmail@web20904.mail.yahoo.com> p4raw-id: //depot/perl@13053 --- ext/Errno/Errno_pm.PL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/Errno') diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 541106cbc2..efa613095a 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -98,7 +98,9 @@ sub get_files { } elsif ($Config{archname} eq 'epoc') { # Watch out for cross compiling for EPOC (usually done on linux) $file{'/usr/local/epoc/include/libc/sys/errno.h'} = 1; - } elsif ($^O eq 'linux') { + } elsif ($^O eq 'linux' && + $Config{gccversion} ne '' # might be using, say, Intel's icc + ) { # Some Linuxes have weird errno.hs which generate # no #file or #line directives $file{'/usr/include/errno.h'} = 1; -- cgit v1.2.1