p4raw-id: //depot/perl@10846
BEGIN {
our $hasne;
eval { my @n = getnetbyname "loopback" };
- $hasne = 1 unless $@ && $@ =~ /unimplemented/;
+ $hasne = 1 unless $@ && $@ =~ /unimplemented|unsupported/i;
unless ($hasne) { print "1..0 # Skip: no getnetbyname\n"; exit 0 }
use Config;
$hasne = 0 unless $Config{'i_netdb'} eq 'define';
BEGIN {
our $haspe;
eval { my @n = getprotobyname "tcp" };
- $haspe = 1 unless $@ && $@ =~ /unimplemented/;
+ $haspe = 1 unless $@ && $@ =~ /unimplemented|unsupported/i;
unless ($haspe) { print "1..0 # Skip: no getprotobyname\n"; exit 0 }
use Config;
$haspe = 0 unless $Config{'i_netdb'} eq 'define';
BEGIN {
our $hasse;
eval { my @n = getservbyname "echo", "tcp" };
- $hasse = 1 unless $@ && $@ =~ /unimplemented/;
+ $hasse = 1 unless $@ && $@ =~ /unimplemented|unsupported/i;
unless ($hasse) { print "1..0 # Skip: no getservbyname\n"; exit 0 }
use Config;
$hasse = 0 unless $Config{'i_netdb'} eq 'define';