Change 13053 by jhi@alpha on 2001/11/16 17:08:15

        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
        From: Charles Randall <[EMAIL PROTECTED]>
        Date: Fri, 16 Nov 2001 09:31:57 -0800 (PST)
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

.... //depot/perl/ext/Errno/Errno_pm.PL#29 edit

Differences ...

==== //depot/perl/ext/Errno/Errno_pm.PL#29 (text) ====
Index: perl/ext/Errno/Errno_pm.PL
--- perl/ext/Errno/Errno_pm.PL.~1~      Fri Nov 16 10:15:05 2001
+++ perl/ext/Errno/Errno_pm.PL  Fri Nov 16 10:15:05 2001
@@ -98,7 +98,9 @@
     } 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;
End of Patch.

Reply via email to