summaryrefslogtreecommitdiff
path: root/ext/Errno
diff options
context:
space:
mode:
authorDan Kogai <dankogai@dan.co.jp>2004-03-30 09:53:52 +0900
committerNicholas Clark <nick@ccl4.org>2004-03-30 21:50:15 +0000
commita148bc21b766f4140cbfd09c58adec1f3939aa65 (patch)
tree01690c668b2a99b1ce4741899ea18fc29b624aa8 /ext/Errno
parentec25c072b23be335ed591b8545a68d02fa38c9c7 (diff)
downloadperl-a148bc21b766f4140cbfd09c58adec1f3939aa65.tar.gz
Zaurus SL-[78]60 native compile patch
Message-Id: <46DCC0BF-8199-11D8-8D5B-000A95DBB50A@dan.co.jp> Date: Tue, 30 Mar 2004 00:53:52 +0900 p4raw-id: //depot/perl@22614
Diffstat (limited to 'ext/Errno')
-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 22171fa36e..fdab9eeded 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -109,7 +109,9 @@ sub get_files {
) {
# Some Linuxes have weird errno.hs which generate
# no #file or #line directives
- $file{'/usr/include/errno.h'} = 1;
+ my $linux_errno_h = -e '/usr/include/errno.h' ?
+ '/usr/include/errno.h' : '/usr/local/include/errno.h';
+ $file{$linux_errno_h} = 1;
} elsif ($^O eq 'MacOS') {
# note that we are only getting the GUSI errno's here ...
# we might miss out on compiler-specific ones