summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro2022-08-18 04:21:24 +0000
committerThomas Munro2022-08-18 04:31:11 +0000
commitf340f97a13b1455349ee27550623179c018fa036 (patch)
tree8ea24fdd774bccfea99317a6dbfbaee461bec3a4
parent2492fe49dcb534844d9eece97504b4caca1d81ae (diff)
mstcpip.h is not missing on MinGW.
Remove a small difference between MinGW and MSVC builds which isn't needed for modern MinGW, noticed in passing. Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
-rw-r--r--src/backend/libpq/pqcomm.c2
-rw-r--r--src/interfaces/libpq/fe-connect.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 5dd92c9f66..8ff3be611d 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -69,7 +69,7 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <utime.h>
-#ifdef _MSC_VER /* mstcpip.h is missing on mingw */
+#ifdef WIN32
#include <mstcpip.h>
#endif
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index ec6c17cd0b..8cefef20d1 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -44,9 +44,7 @@
#endif
#define near
#include <shlobj.h>
-#ifdef _MSC_VER /* mstcpip.h is missing on mingw */
#include <mstcpip.h>
-#endif
#else
#include <sys/socket.h>
#include <netdb.h>