undo-stdbool-damage-in-dfmgr.patch
text/x-diff
Filename: undo-stdbool-damage-in-dfmgr.patch
Type: text/x-diff
Part: 0
Message:
Re: pgsql: Refactor dlopen() support
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| src/backend/utils/fmgr/dfmgr.c | 0 | 0 |
diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c index c2a2572..4a5cc7c 100644 *** a/src/backend/utils/fmgr/dfmgr.c --- b/src/backend/utils/fmgr/dfmgr.c *************** *** 18,24 **** --- 18,34 ---- #ifdef HAVE_DLOPEN #include <dlfcn.h> + + /* + * On macOS, <dlfcn.h> insists on including <stdbool.h>. If we're not + * using stdbool, undef bool to undo the damage. + */ + #ifndef USE_STDBOOL + #ifdef bool + #undef bool #endif + #endif + #endif /* HAVE_DLOPEN */ #include "fmgr.h" #include "lib/stringinfo.h"