diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-30 20:52:05 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-30 20:52:13 -0400 |
commit | b0c90c85fc93f37107365dd8c7f47ba5e00544de (patch) | |
tree | 0d50d3b9fa87edce27d6b49821b8699d23c5195b /src | |
parent | a4ebbd27527087fcf3ade36f4e0072033e5b2f78 (diff) | |
download | postgresql-b0c90c85fc93f37107365dd8c7f47ba5e00544de.tar.gz postgresql-b0c90c85fc93f37107365dd8c7f47ba5e00544de.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/replication/walreceiver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index 14d401674d6..76268ceb23f 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" |