From e7ca8c369fd9c8f392634fd1e0c18977b4c652df Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Tue, 28 Apr 2015 19:12:37 +0200 Subject: [PATCH] Allow repmgr to be compiled with a libpq newer than PostgreSQL Fixes #44 --- check_dir.c | 3 ++- repmgr.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/check_dir.c b/check_dir.c index 5826e11c..dffb364d 100644 --- a/check_dir.c +++ b/check_dir.c @@ -25,7 +25,8 @@ #include /* NB: postgres_fe must be included BEFORE check_dir */ -#include "postgres_fe.h" +#include +#include #include "check_dir.h" #include "strutil.h" diff --git a/repmgr.h b/repmgr.h index bc2882b7..c5cf37ea 100644 --- a/repmgr.h +++ b/repmgr.h @@ -20,9 +20,9 @@ #ifndef _REPMGR_H_ #define _REPMGR_H_ -#include "postgres_fe.h" -#include "getopt_long.h" -#include "libpq-fe.h" +#include +#include +#include #include "strutil.h" #include "dbutils.h"