]> granicus.if.org Git - postgresql/commitdiff
Fix missing inclusions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Nov 2012 23:05:43 +0000 (18:05 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Nov 2012 23:06:03 +0000 (18:06 -0500)
Some platforms require including <netinet/in.h> and/or <arpa/inet.h> to
use htonl() and ntohl().  Per build failure locally.

src/bin/pg_basebackup/receivelog.c

index aed90954e6c6efe173a25d5bda4095e3e51112f1..f653650ffb14c2dd28a42146a571b41b728a5224 100644 (file)
  */
 #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"
 #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;