mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix missing inclusions.
Some platforms require including <netinet/in.h> and/or <arpa/inet.h> to use htonl() and ntohl(). Per build failure locally.
This commit is contained in:
@ -19,6 +19,15 @@
|
|||||||
*/
|
*/
|
||||||
#define FRONTEND 1
|
#define FRONTEND 1
|
||||||
#include "postgres.h"
|
#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 "libpq-fe.h"
|
||||||
#include "access/xlog_internal.h"
|
#include "access/xlog_internal.h"
|
||||||
#include "utils/datetime.h"
|
#include "utils/datetime.h"
|
||||||
@ -27,11 +36,6 @@
|
|||||||
#include "receivelog.h"
|
#include "receivelog.h"
|
||||||
#include "streamutil.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 */
|
/* fd for currently open WAL file */
|
||||||
static int walfile = -1;
|
static int walfile = -1;
|
||||||
|
Reference in New Issue
Block a user