Skip to content

Commit

Permalink
Patch AnyEvent::Socket. It's causing errors on newer Perl versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mherger committed Oct 19, 2019
1 parent 5368636 commit cbc2822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CPAN/AnyEvent/Socket.pm → lib/AnyEvent/Socket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,11 @@ Example.

sub inet_aton {
my ($name, $cb) = @_;
my $ipn;

if (my $ipn = &parse_ipv4) {
if ($ipn = &parse_ipv4) {
$cb->($ipn);
} elsif (my $ipn = &parse_ipv6) {
} elsif ($ipn = &parse_ipv6) {
$cb->($ipn);
} elsif ($name eq "localhost") { # rfc2606 et al.
$cb->(v127.0.0.1, v0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1);
Expand Down

0 comments on commit cbc2822

Please sign in to comment.