From: Tom Lane Date: Sat, 31 Mar 2018 00:52:05 +0000 (-0400) Subject: Portability fix for commit 9a895462d. X-Git-Tag: REL_11_BETA1~411 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0c90c85fc93f37107365dd8c7f47ba5e00544de;p=postgresql Portability fix for commit 9a895462d. So far as I can find, NI_MAXHOST isn't actually required anywhere by POSIX. Nonetheless, commit 9a895462d supposed that it could rely on having that symbol without any ceremony at all. We do have a hack for providing it if the platform doesn't, in getaddrinfo.h, so fix the problem by #including that file. Per buildfarm. --- diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index 14d401674d..76268ceb23 100644 --- a/src/include/replication/walreceiver.h +++ b/src/include/replication/walreceiver.h @@ -15,6 +15,7 @@ #include "access/xlog.h" #include "access/xlogdefs.h" #include "fmgr.h" +#include "getaddrinfo.h" /* for NI_MAXHOST */ #include "replication/logicalproto.h" #include "replication/walsender.h" #include "storage/latch.h"