postgres.git / summary / log / commit / refs

commit    f340f97a13b1455349ee27550623179c018fa036
Author:   Thomas Munro <tmunro@postgresql.org>
Date:     Thu Aug 18 04:21:24 2022 +0000
First released in: 16.0

    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


src/backend/libpq/pqcomm.c | 2 +- src/interfaces/libpq/fe-connect.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 5dd92c9f668..8ff3be611de 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 ec6c17cd0bf..8cefef20d1e 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> [parent: 2492fe49dcb5]