Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e45e03

Browse files
committed
Fix missing inclusions.
Some platforms require including <netinet/in.h> and/or <arpa/inet.h> touse htonl() and ntohl(). Per build failure locally.
1 parentaa69670 commit9e45e03

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
#defineFRONTEND 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
staticintwalfile=-1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp