diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-07 18:05:43 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-07 18:06:03 -0500 |
commit | 9e45e03886c75dd049bcc1b063e0bf34e46a3a62 (patch) | |
tree | f3222b068d57f2d7d67b6e743581e89a822140c3 | |
parent | aa69670e4296321b51251d34e9bd2c4bc17aab75 (diff) | |
download | postgresql-9e45e03886c75dd049bcc1b063e0bf34e46a3a62.tar.gz postgresql-9e45e03886c75dd049bcc1b063e0bf34e46a3a62.zip |
Fix missing inclusions.
Some platforms require including <netinet/in.h> and/or <arpa/inet.h> to
use htonl() and ntohl(). Per build failure locally.
-rw-r--r-- | src/bin/pg_basebackup/receivelog.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index aed90954e6c..f653650ffb1 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 <sys/stat.h> +#include <sys/time.h> +#include <sys/types.h> +#include <unistd.h> +/* for ntohl/htonl */ +#include <netinet/in.h> +#include <arpa/inet.h> + #include "libpq-fe.h" #include "access/xlog_internal.h" #include "utils/datetime.h" @@ -27,11 +36,6 @@ #include "receivelog.h" #include "streamutil.h" -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> - /* fd for currently open WAL file */ static int walfile = -1; |