Content-Length: 288341 | pFad | http://github.com/postgrespro/postgres/commit/9e45e03886c75dd049bcc1b063e0bf34e46a3a62

C7 Fix missing inclusions. · postgrespro/postgres@9e45e03 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9e45e03886c75dd049bcc1b063e0bf34e46a3a62

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy