Remove unnecessary include of <sys/socket.h>
authorPeter Eisentraut <[email protected]>
Mon, 4 Dec 2023 05:34:27 +0000 (06:34 +0100)
committerPeter Eisentraut <[email protected]>
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 <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/cff5475d-e0a9-4561-b094-794aa36bd031%40eisentraut.org

src/include/replication/walreceiver.h

index 04b439dc50338605107122b8a99be34fc54478fb..949e874f2193c7d30731f00a8e7a82d8e08207f5 100644 (file)
@@ -13,7 +13,6 @@
 #define _WALRECEIVER_H
 
 #include <netdb.h>
-#include <sys/socket.h>
 
 #include "access/xlog.h"
 #include "access/xlogdefs.h"