Jim Meyering <[EMAIL PROTECTED]> writes:

> Here's a fix for the first:
>
>     test-getaddrinfo.c: In function 'simple':
>     test-getaddrinfo.c:67: error: 'EAI_NODATA' undeclared (first use in this 
> function)
>     test-getaddrinfo.c:67: error: (Each undeclared identifier is
>     reported only once

getaddrinfo.h should declare that symbol if missing.  Can you see why
that doesn't happen?  Does the system have EAI_BADFLAGS but not
EAI_NODATA?

> +#ifndef EAI_NODATA
> +# define EAI_NODATA 0
> +#endif

That is the wrong value for this error, since 0 is reserved for
successful returns.

/Simon


Reply via email to