diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-08-18 16:16:00 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-08-18 16:31:11 +1200 |
commit | cce28f62680ca77f18762d58bc31f6b67c6ef692 (patch) | |
tree | 3bb422828f5faae532bdb6097502d1471ec62f46 /src | |
parent | 2cea02fb85b9b00c3b95d8cd0e39cf91cd2ce289 (diff) | |
download | postgresql-cce28f62680ca77f18762d58bc31f6b67c6ef692.tar.gz postgresql-cce28f62680ca77f18762d58bc31f6b67c6ef692.zip |
Fix macro problem with gai_strerror on Windows.
Commit 5579388d was confused about why gai_strerror() didn't work, and
used gai_strerrorA(). It turns out that we had explicitly undefined
Windows' own macro for that somewhere else. Get rid of all that, and
use the system headers' definition of gai_sterror() directly as
intended.
Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/win32/netdb.h | 2 | ||||
-rw-r--r-- | src/include/port/win32/sys/socket.h | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/include/port/win32/netdb.h b/src/include/port/win32/netdb.h index f0cc2c2367e..9ed13e457b8 100644 --- a/src/include/port/win32/netdb.h +++ b/src/include/port/win32/netdb.h @@ -4,6 +4,4 @@ #include <ws2tcpip.h> -#define gai_strerror gai_strerrorA - #endif diff --git a/src/include/port/win32/sys/socket.h b/src/include/port/win32/sys/socket.h index 9b2cdf3b9bc..0c32c0f7b2e 100644 --- a/src/include/port/win32/sys/socket.h +++ b/src/include/port/win32/sys/socket.h @@ -23,11 +23,4 @@ #define ERROR PGERROR #endif -/* - * we can't use the windows gai_strerror{AW} functions because - * they are defined inline in the MS header files. So we'll use our - * own - */ -#undef gai_strerror - #endif /* WIN32_SYS_SOCKET_H */ |