diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-11-29 13:17:31 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-12-14 09:22:40 +0100 |
commit | b6c36746cf4d7234615a50c042561bf21daa51a7 (patch) | |
tree | 907603ccbf4be7eedc9d6d790e0752c37171d613 /ext/Errno | |
parent | 476161f6df66100c5d0786092b0320bded84031b (diff) | |
download | perl-b6c36746cf4d7234615a50c042561bf21daa51a7.tar.gz |
Remove the BeOS port.
BeOS was an operating system for personal computers developed by Be Inc,
initially for their BeBox hardware. The OS Haiku was written as an open source
replacement/continuation for BeOS, and its perl port is current and actively
maintained.
The BeOS port has not been updated since 2004.
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index 941ee406e3..b7079112bf 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -2,7 +2,7 @@ use ExtUtils::MakeMaker; use Config; use strict; -our $VERSION = "1.17"; +our $VERSION = "1.18"; my %err = (); my %wsa = (); @@ -141,7 +141,7 @@ sub get_files { 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 'beos' || $^O eq 'haiku') { + } elsif ($^O eq 'haiku') { # hidden in a special place $file{'/boot/develop/headers/posix/errno.h'} = 1; @@ -233,7 +233,7 @@ sub write_errno_pm { close(CPPI); - unless ($^O eq 'beos') { # trust what we have / get later + { # BeOS (support now removed) did not enter this block # invoke CPP and read the output if ($^O eq 'VMS') { @@ -274,42 +274,6 @@ sub write_errno_pm { close(CPPO); } - # Many of the E constants (including ENOENT, which is being - # used in the Perl test suite a lot), are available only as - # enums in BeOS, so compiling and executing some code is about - # only way to find out what the numeric Evalues are. In fact above, we - # didn't even bother to get the values of the ones that have numeric - # values, since we can get all of them here, anyway. - - if ($^O eq 'beos') { - if (open(C, ">errno.c")) { - my @allerrs = keys %err; - print C <<EOF; -#include <errno.h> -#include <stdio.h> -int main() { -EOF - for (@allerrs) { - print C qq[printf("$_ %d\n", $_);] - } - print C "}\n"; - close C; - system("cc -o errno errno.c"); - unlink("errno.c"); - if (open(C, "./errno|")) { - while (<C>) { - if (/^(\w+) (-?\d+)$/) { $err{$1} = $2 } - } - close(C); - } else { - die "failed to execute ./errno: $!\n"; - } - unlink("errno"); - } else { - die "failed to create errno.c: $!\n"; - } - } - # escape $Config{'archname'} my $archname = $Config{'archname'}; $archname =~ s/([@%\$])/\\\1/g; |