On Mon, Dec 19, 2005 at 05:59:12PM -0500, Tom Lane wrote:
> Albert Chin <pgsql-hackers@mlists.thewrittenword.com> writes:
> > The problem is that /usr/include/arpa/nameser_compat.h defines a
> > struct named HEADER. This conflicts with the use of preproc.y in
> > src/interfaces/ecpg/preproc/preproc.y.
>
> > What should it be renamed to?
>
> Perhaps a more relevant question is why ecpg/preproc is including
> that header.
#include <netdb.h> with -D_REENTRANT includes it. preproc.c: #include "postgres_fe.h" #include "c.h"
#include"port.h" #include <netdb.h>
ADD has the same problem.
--
albert chin (china@thewrittenword.com)