pgpool2.git / summary / log / commit / refs

commit    48e9d4b028bdfefc9cca4e3f1f9d700b36cff294
Author:   Muhammad Usama <m.usama@gmail.com>
Date:     Wed Feb 03 11:54:24 2016 +0000

    Fix for [pgpool-II 0000166]: compile issue on freebsd
    
    added missing include files, The patch is contributed by
    the bug reporter and enhanced a little by me.


src/include/parser/stringinfo.h | 1 + src/include/utils/palloc.h | 1 + src/watchdog/wd_escalation.c | 4 ++++ src/watchdog/wd_if.c | 4 ++++ 4 files changed, 10 insertions(+) diff --git a/src/include/parser/stringinfo.h b/src/include/parser/stringinfo.h index 57a26d116..ae02b2b9a 100644 --- a/src/include/parser/stringinfo.h +++ b/src/include/parser/stringinfo.h @@ -19,6 +19,7 @@ #define STRINGINFO_H #include <stdio.h> +#include <stdarg.h> #include "parser/pg_config_manual.h" #include "pool_parser.h" diff --git a/src/include/utils/palloc.h b/src/include/utils/palloc.h index 5bb5a8e9b..45d544e3f 100644 --- a/src/include/utils/palloc.h +++ b/src/include/utils/palloc.h @@ -29,6 +29,7 @@ #ifndef PALLOC_H #define PALLOC_H +#include <stdarg.h> #include "parser/pg_config_manual.h" /* diff --git a/src/watchdog/wd_escalation.c b/src/watchdog/wd_escalation.c index 16349323a..24bb577b3 100644 --- a/src/watchdog/wd_escalation.c +++ b/src/watchdog/wd_escalation.c @@ -27,6 +27,10 @@ #include <unistd.h> #include <errno.h> +#ifdef __FreeBSD__ +#include <sys/wait.h> +#endif + #include "pool.h" #include "utils/elog.h" #include "utils/palloc.h" diff --git a/src/watchdog/wd_if.c b/src/watchdog/wd_if.c index 0d290eadb..a44916d3d 100644 --- a/src/watchdog/wd_if.c +++ b/src/watchdog/wd_if.c @@ -49,6 +49,10 @@ #include <arpa/inet.h> #include <ifaddrs.h> +#ifdef __FreeBSD__ +#include <netinet/in.h> +#endif + #include "pool.h" #include "utils/elog.h" [parent: 342471f57829]