summaryrefslogtreecommitdiff
path: root/src/port/getaddrinfo.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-01-30 19:56:46 -0500
committerAndrew Dunstan <andrew@dunslane.net>2011-01-30 19:56:46 -0500
commit91812df4ed0facfb90bec3f9430dd5a97d56f695 (patch)
tree09e3d6d3f5ee3cfe1e4884b373b1271574153ad6 /src/port/getaddrinfo.c
parent9688c4e6f1516d2fc0db5d200112c4d91538878d (diff)
Enable building with the Mingw64 compiler.
This can be used to build 64 bit Windows binaries, not only on 64 bit Windows but on supported cross-compiling hosts including 32 bit Windows, Cygwin, Darwin and Linux.
Diffstat (limited to 'src/port/getaddrinfo.c')
-rw-r--r--src/port/getaddrinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/port/getaddrinfo.c b/src/port/getaddrinfo.c
index 654858e6393..fabd50dddbe 100644
--- a/src/port/getaddrinfo.c
+++ b/src/port/getaddrinfo.c
@@ -329,8 +329,7 @@ gai_strerror(int errcode)
return "Not enough memory";
#endif
#ifdef EAI_NODATA
-#ifndef WIN32_ONLY_COMPILER /* MSVC complains because another case has the
- * same value */
+#if !defined(WIN64) && !defined(WIN32_ONLY_COMPILER) /* MSVC/WIN64 duplicate */
case EAI_NODATA:
return "No host data of that type was found";
#endif