From 7ad9a2c28a9fbdaab63e608a66d027db7be72ee9 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 | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/check_dir.c b/check_dir.c index 30d93f4f..8038e752 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 646b203e..5fa9e976 100644 --- a/repmgr.h +++ b/repmgr.h @@ -20,11 +20,9 @@ #ifndef _REPMGR_H_ #define _REPMGR_H_ -#include "postgres_fe.h" -#include "libpq-fe.h" - - -#include "getopt_long.h" +#include +#include +#include #include "strutil.h" #include "dbutils.h"