From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Trouble building 8.1.1 on Tru64 UNIX 5.1 |
Date: | 2005-12-19 23:34:38 |
Message-ID: | 5249.1135035278@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Albert Chin <pgsql-hackers(at)mlists(dot)thewrittenword(dot)com> writes:
> On Mon, Dec 19, 2005 at 05:59:12PM -0500, Tom Lane wrote:
>> 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>
Well, port.h is certainly doing a fine job of polluting the namespace.
Maybe we should pull out the stuff that depends on netdb.h and pwd.h
into some other header that isn't going to get included so widely.
> ADD has the same problem.
There's no way that we are going to be able to dodge every single symbol
that any random system header on any random platform might define ---
especially when you get into the less-well-standardized headers like
these. We have to think smaller in terms of what headers we include
everywhere.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Albert Chin | 2005-12-19 23:41:28 | Re: Trouble building 8.1.1 on Tru64 UNIX 5.1 |
Previous Message | Jess Balint | 2005-12-19 23:33:22 | Lock issue when trying to vacuum db |
From | Date | Subject | |
---|---|---|---|
Next Message | Albert Chin | 2005-12-19 23:41:28 | Re: Trouble building 8.1.1 on Tru64 UNIX 5.1 |
Previous Message | Karl O. Pinc | 2005-12-19 23:23:59 | Re: Converting seconds past midnight to a time |