Fix breakage in making pgpool_adm.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 6 Oct 2023 21:15:30 +0000 (06:15 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 6 Oct 2023 21:22:04 +0000 (06:22 +0900)
commit3158ef278cdc8b2edcbbb5e709d54dfa1f4c8e47
treeda9bd8d2ccb213ac9a93b004598d9980a16d9f45
parent652d7719535a76c3859896f1cf3171f5868b712f
Fix breakage in making pgpool_adm.

Since commit f54efc50 "Fix compiler warnings regarding
DEFAULT_PGSOCKET_DIR.", src/sql/pgpool_adm cannot be compiled with
error:
In file included from pgpool_adm.c:35:0:
../../include/pcp/libpcp_ext.h:32:37: fatal error: parser/pg_config_manual.h: No such file or directory
 #include "parser/pg_config_manual.h"

Since pgpool_adm is a PostgreSQL extension module, it should not
include Pgpool-II's pg_config_manual.h.  Rather than fixing pgpool_adm
to allow to include pgpool's pg_config_manual.h, modify libpcp_ext.h
so that it does not include pgpool's pg_config_manual.h if PGPOOL_ADM
is defined.
src/include/pcp/libpcp_ext.h
src/sql/pgpool_adm/Makefile