summaryrefslogtreecommitdiff
path: root/src/include/getaddrinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/getaddrinfo.h')
-rw-r--r--src/include/getaddrinfo.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/getaddrinfo.h b/src/include/getaddrinfo.h
index 46aad596c7..c5595142a5 100644
--- a/src/include/getaddrinfo.h
+++ b/src/include/getaddrinfo.h
@@ -13,7 +13,7 @@
* This code will also work on platforms where struct addrinfo is defined
* in the system headers but no getaddrinfo() can be located.
*
- * Copyright (c) 2003-2016, PostgreSQL Global Development Group
+ * Copyright (c) 2003-2017, PostgreSQL Global Development Group
*
* src/include/getaddrinfo.h
*
@@ -40,14 +40,12 @@
#define EAI_MEMORY (-10)
#define EAI_SYSTEM (-11)
#else /* WIN32 */
-#ifdef WIN32_ONLY_COMPILER
+#ifdef _MSC_VER
#ifndef WSA_NOT_ENOUGH_MEMORY
#define WSA_NOT_ENOUGH_MEMORY (WSAENOBUFS)
#endif
-#ifndef __BORLANDC__
#define WSATYPE_NOT_FOUND (WSABASEERR+109)
#endif
-#endif
#define EAI_AGAIN WSATRY_AGAIN
#define EAI_BADFLAGS WSAEINVAL
#define EAI_FAIL WSANO_RECOVERY