bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: getaddrinfo


From: Bruno Haible
Subject: [Bug-gnulib] Re: getaddrinfo
Date: Tue, 9 Nov 2004 13:47:50 +0100
User-agent: KMail/1.5

Simon Josefsson wrote:
> >> +    case PF_INET6:
> >
> > Can you protect this with  #if HAVE_IPV6, to avoid compilation errors
> > on hosts that don't support IPv6 sockets? You find an autoconf macro for
> > HAVE_IPV6 in ...
>
> ...in?  Can't seem to find it in gnulib at all.

Oops, I meant http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00079.html
Since getaddrinfo will probably not be the only module to use HAVE_IPV6,
I have now put it under m4/sockpfaf.m4.

> >> +  tmp->ai_addrlen = sizeof (sin);
> >
> > 'sin' is not a defined variable.
>
> Oops.  So it cannot ever have compiled.  So it seems none of my
> platform lack getaddrinfo...

I do such testing by manually removing the "#define HAVE_GETADDRINFO 1" line
from config.h on a glibc system, and then compile with -Wall.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]