summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-12-04 05:34:27 +0000
committerPeter Eisentraut2023-12-04 05:35:22 +0000
commitda67cb0a4487bfbf269de72de9d9252dfc80813d (patch)
treeba36dac3fc0f911962489b8bf1f242a957be3de4
parentdffb2b478f54f4abdd0271bbab44d3f81d017648 (diff)
Remove unnecessary include of <sys/socket.h>
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 <[email protected]> Reviewed-by: Tom Lane <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/cff5475d-e0a9-4561-b094-794aa36bd031%40eisentraut.org
-rw-r--r--src/include/replication/walreceiver.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h
index 04b439dc50..949e874f21 100644
--- 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"