summaryrefslogtreecommitdiff
path: root/ext/Errno/Errno_pm.PL
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Errno/Errno_pm.PL')
-rw-r--r--ext/Errno/Errno_pm.PL4
1 files changed, 3 insertions, 1 deletions
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;