Subject: | Socket6::AF_INET6/PF_INET6 check |
Some systems have AF_INET6 but doesn't have PF_INET6. This lead to some
problems, because it's assumed that PF_INET6 exists when AF_INET6 exists.
Can you change POE/Wheel/SocketFactory.pm from line 46 to have both checked:
# Provide dummy constants for systems that don't have them.
BEGIN {
eval {
require Socket6;
my $x = &Socket6::AF_INET6;
};
if ($@) {
*Socket6::AF_INET6 = sub () { ~0 };
}
eval {
require Socket6;
my $x = &Socket6::PF_INET6;
};
if ($@) {
*Socket6::PF_INET6 = sub () { ~0 };
}
}
--
Serguei Trouchelle