pgsql: Work around stdbool problem in dfmgr.c.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Work around stdbool problem in dfmgr.c.
Дата
Msg-id E1fz2mE-00051v-QO@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Work around stdbool problem in dfmgr.c.

Commit 842cb9fa6 refactored things so that dfmgr.c includes <dlfcn.h>,
which before that had only been directly included in platform-specific
stub files.  It turns out that on macOS, <dlfcn.h> includes <stdbool.h>,
and that causes problems on platforms where _Bool is not char-sized ...
which happens to include the PPC versions of macOS.  Work around it
much as we have in plperl.h, by #undef'ing bool after including the
problematic file, but only if we're not using stdbool-style booleans.

Discussion: https://postgr.es/m/E1fxqjl-0003YS-NS@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ff47d4bf1f208227a2e087ef7269e88285fa257e

Modified Files
--------------
src/backend/utils/fmgr/dfmgr.c | 10 ++++++++++
1 file changed, 10 insertions(+)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Install a check for mis-linking of src/port and src/commonfunct
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Improve behavior of to_timestamp()/to_date() functions