From: Charles Randall Date: Fri, 16 Nov 2001 09:31:57 +0000 (-0800) Subject: Robustness against Linux using something else than gcc; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=022394cfaaa8ec20e603e5da621b1778fd79e4ad;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 541106c..efa6130 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;