Tom Lane writes:
> > I think the problem is more accurately described thus:  Flex generated
> > files include <stdio.h> before "postgres.h" due to the way it lays out the
> > code in the output.  stdio.h does something which prevents switching to
> > the large file model later on in postgres.h.  (This manifests itself in
> > unistd.h, but unistd.h itself is not the problem per se.)
> 
> > The proposed fix was to include the flex output in some other file (such
> > as the corresponding grammar file) rather than to compile it separately.
> 
> I have made this change.  CVS tip should compile cleanly now on machines
> where this is an issue.

Hmm, sorry for the late response, but I was away on the (long) weekend :-(
I think your patch might be the source for Christopher's build problem 
(Compile problem on FreeBSD/Alpha).

Peter already had a patch, that I tested, modified a little, and sent him back
for inclusion into CVS.

I will attach his patch with my small fixes for cross reference.
The issue is, that you need to remove the #include "bootstrap_tokens.h"
line from the lex file.

Andreas
Mon, 4 Nov 2002 13:11:38 +0100
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: pg_dump and large files - is this a problem?
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> The issue is, that you need to remove the #include "bootstrap_tokens.h"
> line from the lex file.

Good point; I'm surprised gcc doesn't spit up on that.  I've made that
mod and also added the inclusion-order-correction in pqsignal.c.

			regards, tom lane

Mon, 04 Nov 2002 09:29:14 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump and large files - is this a problem? 

Does this resolve our AIX compile problem?

---------------------------------------------------------------------------

Tom Lane wrote:
> "Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> > The issue is, that you need to remove the #include "bootstrap_tokens.h"
> > line from the lex file.
> 
> Good point; I'm surprised gcc doesn't spit up on that.  I've made that
> mod and also added the inclusion-order-correction in pqsignal.c.
> 
> 			regards, tom lane
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Mon, 4 Nov 2002 17:37:20 -0500 (EST)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: pg_dump and large files - is this a problem?