Re: AIX port current - Mailing list pgsql-patches

From Tom Lane
Subject Re: AIX port current
Date
Msg-id 18436.1066710784@sss.pgh.pa.us
Whole thread Raw
In response to AIX port current  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-patches
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:

>   #include <errno.h>
> + #if defined(__CYGWIN__) || defined(WIN32)
>   #include <fcntl.h>                /* ensure O_BINARY is available */
> + #endif

I don't feel that this will fly.  The comment on the #include line is
hopelessly out of touch with reality --- if you check the list of
symbols defined in fcntl.h you will find a bunch that are used all over
the place, eg SEEK_SET, O_RDONLY, O_CREAT, O_NDELAY, S_IRUSR.  Perhaps
we could #include <fcntl.h> in the various .c files that use these
symbols rather than in c.h, but is that really a step forward?  If there
are any such .c files that also need the conflicting AIX header, we're
still screwed.  Please propose another answer.  Or get AIX to fix their
broken headers.

I have no strong objection to the ecpg part of the proposed patch,
though like Andreas I wonder what's really going on there.  The C99
spec is perfectly clear that LLONG_MIN is the standard spelling ---
why is ecpg apparently choosing another preferred spelling?

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump problems against 7.0
Next
From: Christopher Kings-Lynne
Date:
Subject: [Fwd: Re: [HACKERS] obj_description problems?]