Bug#670722: perl-base: IO::Socket::UNIX::hostpath dies on kFreeBSD

Steven Chamberlain steven at pyro.eu.org
Sun May 6 14:11:10 UTC 2012


On 06/05/12 14:03, Dominic Hargreaves wrote:
> ... I'm guessing that the problem is
> related to the __linux__ conditional at
> 
> http://perl5.git.perl.org/perl.git/blob/HEAD:/cpan/Socket/Socket.xs#l710

Hi, good work!

It looks to me like GNU/kFreeBSD uses the sys/un.h provided by eglibc,
with a sockaddr_un different to FreeBSD's, so the test should rather be:

#   if defined(__linux__) || defined(__GLIBC__)


As for GNU/Hurd, my guess is that it doesn't have that header at all and
skips the entire #ifdef I_SYS_UN block.  So it shouldn't need to be
considered here.

Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org






More information about the Perl-maintainers mailing list