diff options
author | Alex Waugh <alex@alexwaugh.com> | 2006-04-17 01:14:26 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-04-18 12:48:31 +0000 |
commit | 7ee146b12403586cf7249a676b2be9b7658f67fd (patch) | |
tree | 1b79a89c55197bf11d0879b5cceab0caa61a53a5 /ext/Errno | |
parent | 4154741246a440c7ccc4e633e6d115949af4ee56 (diff) | |
download | perl-7ee146b12403586cf7249a676b2be9b7658f67fd.tar.gz |
Support compiling for RISC OS
Message-ID: <2498b2184e.ajw498@caramel.cp15.org>
p4raw-id: //depot/perl@27884
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index a09f9f68ad..ac38f39af1 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -134,6 +134,12 @@ sub get_files { } elsif ($Config{archname} eq 'epoc') { # Watch out for cross compiling for EPOC (usually done on linux) $file{'/usr/local/epocemx/epocsdk/include/libc/sys/errno.h'} = 1; + } elsif ($Config{archname} eq 'arm-riscos') { + # Watch out for cross compiling for RISC OS + my $dep = `echo "#include <errno.h>" | gcc -E -M -`; + if ($dep =~ /(\S+errno\.h)/) { + $file{$1} = 1; + } } elsif ($^O eq 'linux' && $Config{gccversion} ne '' # might be using, say, Intel's icc ) { |