diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-07-06 16:30:53 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2021-10-08 19:21:33 +0100 |
commit | 2eb109a4d326f05244e37f956ca8cd8b0db22b19 (patch) | |
tree | a8298fe2c529c6d6438fd75c144d91b18823824d /ext/Errno | |
parent | 07a6208729c01c230010594c3e08a946ab0ccbef (diff) | |
download | perl-2eb109a4d326f05244e37f956ca8cd8b0db22b19.tar.gz |
Remove NetWare support
The build has been broken since 2009.
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index c32b4412e7..540d026e95 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.34"; +our $VERSION = "1.35"; my %err = (); @@ -156,19 +156,15 @@ sub get_files { open(CPPI, '>', 'errno.c') or die "Cannot open errno.c"; - if ($^O eq 'NetWare') { - print CPPI "#include <nwerrno.h>\n"; - } else { - print CPPI "#include <errno.h>\n"; - if ($IsMSWin32) { - print CPPI qq[#include "../../win32/include/sys/errno2.h"\n]; - } - } + print CPPI "#include <errno.h>\n"; + if ($IsMSWin32) { + print CPPI qq[#include "../../win32/include/sys/errno2.h"\n]; + } close(CPPI); # invoke CPP and read the output - if ($IsMSWin32 || $^O eq 'NetWare') { + if ($IsMSWin32) { open(CPPO,"$Config{cpprun} $Config{cppflags} errno.c |") or die "Cannot run '$Config{cpprun} $Config{cppflags} errno.c'"; } else { @@ -179,7 +175,7 @@ sub get_files { my $pat = '^#\s*(?:line)?\s*\d+\s+"([^"]+)"'; while(<CPPO>) { - if ($^O eq 'os2' or $IsMSWin32 or $^O eq 'NetWare') { + if ($^O eq 'os2' or $IsMSWin32) { if (/$pat/o) { my $f = $1; $f =~ s,\\\\,/,g; @@ -207,12 +203,8 @@ sub write_errno_pm { open(CPPI, '>', 'errno.c') or die "Cannot open errno.c"; - if ($^O eq 'NetWare') { - print CPPI "#include <nwerrno.h>\n"; - } - else { - print CPPI "#include <errno.h>\n"; - } + print CPPI "#include <errno.h>\n"; + if ($IsMSWin32) { print CPPI qq[#include "../../win32/include/sys/errno2.h"\n]; } @@ -239,7 +231,7 @@ sub write_errno_pm { $cpp =~ s/sys\$input//i; open(CPPO,"$cpp errno.c |") or die "Cannot exec $Config{cppstdin}"; - } elsif ($IsMSWin32 || $^O eq 'NetWare') { + } elsif ($IsMSWin32) { my $cpp = "$Config{cpprun} $Config{cppflags}" . $inhibit_linemarkers; open(CPPO,"$cpp errno.c |") or |