From 9e45e03886c75dd049bcc1b063e0bf34e46a3a62 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 7 Nov 2012 18:05:43 -0500 Subject: [PATCH] Fix missing inclusions. Some platforms require including and/or to use htonl() and ntohl(). Per build failure locally. --- src/bin/pg_basebackup/receivelog.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index aed90954e6..f653650ffb 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -19,6 +19,15 @@ */ #define FRONTEND 1 #include "postgres.h" + +#include +#include +#include +#include +/* for ntohl/htonl */ +#include +#include + #include "libpq-fe.h" #include "access/xlog_internal.h" #include "utils/datetime.h" @@ -27,11 +36,6 @@ #include "receivelog.h" #include "streamutil.h" -#include -#include -#include -#include - /* fd for currently open WAL file */ static int walfile = -1; -- GitLab