HAVE_NETINET_IN_H and HAVE_SYS_SOCKET_H were removed from pg_config.h in PostgreSQL 10 HAVE_NETINET_TCP_H was removed from pg_config.h in PostgreSQL 11 --- src/execute.c.orig 2017-10-08 08:53:35 UTC +++ src/execute.c @@ -28,6 +28,7 @@ #include "plproxy.h" #include +#include #include "poll_compat.h" @@ -35,15 +36,9 @@ #include #include #endif -#ifdef HAVE_SYS_SOCKET_H #include -#endif -#ifdef HAVE_NETINET_IN_H #include -#endif -#ifdef HAVE_NETINET_TCP_H #include -#endif #ifdef HAVE_ARPA_INET_H #include #endif