diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c index c2a257258d..4a5cc7cfc7 100644 --- a/src/backend/utils/fmgr/dfmgr.c +++ b/src/backend/utils/fmgr/dfmgr.c @@ -18,7 +18,17 @@ #ifdef HAVE_DLOPEN #include + +/* + * On macOS, insists on including . 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"