git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dffb2b4)
Remove unnecessary include of <sys/socket.h>
Mon, 4 Dec 2023 05:34:27 +0000 (06:34 +0100)
Mon, 4 Dec 2023 05:35:22 +0000 (06:35 +0100)
This was put here as part of a mechanical replacement of the old
"getaddrinfo.h" with <netdb.h> plus <sys/socket.h> (commit
5579388d2d). But here, we only need netdb.h (for NI_MAXHOST), not
sys/socket.h.

Reviewed-by: Shubham Khanna <Shubham.Khanna@fujitsu.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/cff5475d-e0a9-4561-b094-794aa36bd031%40eisentraut.org


diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h
index 04b439dc50338605107122b8a99be34fc54478fb..949e874f2193c7d30731f00a8e7a82d8e08207f5 100644 (file)
--- a/src/include/replication/walreceiver.h
+++ b/src/include/replication/walreceiver.h
@@ -13,7 +13,6 @@
#define _WALRECEIVER_H
#include <netdb.h>
-#include <sys/socket.h>
#include "access/xlog.h"
#include "access/xlogdefs.h"
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /