Re: AIX compilation problems (was Re: Proposal ...) - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: AIX compilation problems (was Re: Proposal ...)
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961EA0@m0114.s-mxs.net
Whole thread Raw
In response to AIX compilation problems (was Re: Proposal ...)  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: AIX compilation problems (was Re: Proposal ...)  (Peter Eisentraut <peter_e@gmx.net>)
Re: AIX compilation problems (was Re: Proposal ...)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
> > configure somehow thinks it needs to #define _LARGE_FILES though, which
> > then clashes with pg_config.h's _LARGE_FILES. I think the test needs to
> > #include unistd.h .
>
> _LARGE_FILES is defined because it's necessary to make off_t 64 bits.  If
> you disagree, please post compiler output.

Ah, if we want off_t to be 64 bits, then we need _LARGE_FILES.
The problem is, that scan.c includes unistd.h before postgres.h
and thus unistd.h defines _LARGE_FILE_API which is not allowed
together with _LARGE_FILES. Do you know an answer ?
Offhand I can only think of using -D_LARGE_FILES as a compiler flag :-(

Do we really want a general 64 bit off_t or would it be sufficient in the
two places that use fseeko ?

Andreas


pgsql-hackers by date:

Previous
From: "Shridhar Daithankar"
Date:
Subject: Re: Insert Performance
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Insert Performance