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.
#include <signal.h>
#include <stdio.h>
+#ifndef PGPOOL_ADM
#include "parser/pg_config_manual.h"
+#endif
/*
* startup packet definitions (v2) stolen from PostgreSQL
MODULE_big = pgpool_adm
OBJS = pgpool_adm.o
-PG_CPPFLAGS = -I$(libpq_srcdir) -I../../include/pcp
+PG_CPPFLAGS = -I$(libpq_srcdir) -I../../include/pcp -DPGPOOL_ADM
EXTENSION = pgpool_adm
DATA = pgpool_adm--1.0.sql pgpool_adm--1.1.sql pgpool_adm--1.2.sql pgpool_adm--1.3.sql \