Skip to content

Commit

Permalink
Try to help older Perls.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Dec 21, 2022
1 parent 920c8cc commit fe225fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/round_trip.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ use Net::mbedTLS;
use Test::More;
use Test::FailWarnings;

use IO::Socket::UNIX;

my $mbedtls = Net::mbedTLS->new();

my ($cln, $srv);

eval { socketpair $cln, $srv, AF_UNIX, SOCK_STREAM, 0 } or do {
eval { ($cln, $srv) = IO::Socket::UNIX->socketpair(AF_UNIX, SOCK_STREAM, 0) } or do {
my $err = $@;
plan skip_all => "socketpair failed: $err";
};
Expand Down

0 comments on commit fe225fb

Please sign in to comment.