pgsql: Do not build psql's flex module on its own, but instead include

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Do not build psql's flex module on its own, but instead include
Дата
Msg-id 20091110231252.53BF1753FB7@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Do not build psql's flex module on its own, but instead include it in
mainloop.c.  This ensures that postgres_fe.h is read before including
any system headers, which is necessary to avoid problems on some platforms
where we make nondefault selections of feature macros for stdio.h or
other headers.  We have had this policy for flex modules in the backend
for many years, but for some reason it was not applied to psql.
Per trouble report from Alexandra Roy and diagnosis by Albe Laurenz.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/bin/psql:
        Makefile (r1.52.4.1 -> r1.52.4.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/Makefile?r1=1.52.4.1&r2=1.52.4.2)
        mainloop.c (r1.66 -> r1.66.4.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/mainloop.c?r1=1.66&r2=1.66.4.1)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Do not build psql's flex module on its own, but instead include
Следующее
От: achernow@pgfoundry.org (User Achernow)
Дата:
Сообщение: libpqtypes - libpqtypes: Leaking type handlers in events.c during