|
From: | Simon Josefsson |
Subject: | Re: tests/test-getaddrinfo.c: compile failures on freebsd 6 |
Date: | Sat, 03 May 2008 06:26:58 +0200 |
User-agent: | Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) |
Jim Meyering <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |