blob: 61a68b920bec742f45a468d7e865bf95eadaca30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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 <sys/time.h>
+#include <sys/types.h>
#include "poll_compat.h"
@@ -35,15 +36,9 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
-#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
|