Bug#670722: perl-base: IO::Socket::UNIX::hostpath dies on kFreeBSD
Dominic Hargreaves
dom at earth.li
Sun May 6 21:01:07 UTC 2012
On Sun, May 06, 2012 at 05:26:45PM +0200, Robert Millan wrote:
> 2012/5/6 Steven Chamberlain <steven at pyro.eu.org>:
> > 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__)
>
> Note that this is true for the declaration (which is matters here
> AFAICT) but it's not for the actual structure, see #645527.
>
> > 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.
>
> Actually ISTR GNU/Hurd had zero-length sun_path too. CCing debian-hurd...
Good point. The test does fail on hurd-i386 too.
Dominic.
--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
More information about the Perl-maintainers
mailing list