Zaurus SL-[78]60 native compile patch
authorDan Kogai <dankogai@dan.co.jp>
Tue, 30 Mar 2004 00:53:52 +0000 (09:53 +0900)
committerNicholas Clark <nick@ccl4.org>
Tue, 30 Mar 2004 21:50:15 +0000 (21:50 +0000)
Message-Id: <46DCC0BF-8199-11D8-8D5B-000A95DBB50A@dan.co.jp>
Date: Tue, 30 Mar 2004 00:53:52 +0900

p4raw-id: //depot/perl@22614

ext/Errno/Errno_pm.PL

index 22171fa..fdab9ee 100644 (file)
@@ -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