Skip to content

Commit 9e45e03

Browse files
committed
Fix missing inclusions.
Some platforms require including <netinet/in.h> and/or <arpa/inet.h> to use htonl() and ntohl(). Per build failure locally.
1 parent aa69670 commit 9e45e03

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/bin/pg_basebackup/receivelog.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
*/
2020
#define FRONTEND 1
2121
#include "postgres.h"
22+
23+
#include <sys/stat.h>
24+
#include <sys/time.h>
25+
#include <sys/types.h>
26+
#include <unistd.h>
27+
/* for ntohl/htonl */
28+
#include <netinet/in.h>
29+
#include <arpa/inet.h>
30+
2231
#include "libpq-fe.h"
2332
#include "access/xlog_internal.h"
2433
#include "utils/datetime.h"
@@ -27,11 +36,6 @@
2736
#include "receivelog.h"
2837
#include "streamutil.h"
2938

30-
#include <sys/stat.h>
31-
#include <sys/time.h>
32-
#include <sys/types.h>
33-
#include <unistd.h>
34-
3539

3640
/* fd for currently open WAL file */
3741
static int walfile = -1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy