pgsql: Work around stdbool problem in dfmgr.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Work around stdbool problem in dfmgr.c.
Date: 2018-09-09 16:41:34
Message-ID: E1fz2mE-00051v-QO@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2018-09-09 18:40:58 pgsql: Improve behavior of to_timestamp()/to_date() functions
Previous Message Tom Lane 2018-09-09 16:23:33 pgsql: Install a check for mis-linking of src/port and src/common funct