From c14449f0a7c7c34db44377da64e239d58b335b47 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 22 May 2017 11:54:33 +0900 Subject: [PATCH] Fix build on PostgreSQL older than the current libpq Make sure that the includedir_internal directory is used before the includedir_server, otherwise the build may fail for PostgreSQL version lower than the libpq version. Backpatched from downstream: https://anonscm.debian.org/cgit/pkg-postgresql/repmgr.git/tree/debian/patches/makefile-libpq-internal.patch Per GitHub #282 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a79ccf02..e567ace8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ repmgr_OBJS = dbutils.o check_dir.o config.o repmgr.o log.o strutil.o dirmod.o c DATA = repmgr.sql uninstall_repmgr.sql REGRESS = repmgr_funcs repmgr_test -PG_CPPFLAGS = -I$(libpq_srcdir) +PG_CPPFLAGS = -I$(includedir_internal) -I$(libpq_srcdir) PG_LIBS = $(libpq_pgport)