Re: AIX port current

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AIX port current
Дата
Msg-id 18436.1066710784@sss.pgh.pa.us
обсуждение исходный текст
Ответ на AIX port current  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump problems against 7.0
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: [Fwd: Re: [HACKERS] obj_description problems?]