diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-12-10 15:35:41 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-12-10 15:35:41 -0500 |
commit | 1a0c76c32fe470142d3663dd84ac960d75a4e8db (patch) | |
tree | d783c0f17e41b6a627b3750e92bb60b301215a8b /src/port/getaddrinfo.c | |
parent | ab7d4213f93f0ef0e45b9b9343725974f196b091 (diff) |
Enable compiling with the mingw-w64 32 bit compiler.
Original patch by Lars Kanis, reviewed by Nishiyama Tomoaki and tweaked some by me.
This compiler, or at least the latest version of it, is currently broken, and
only passes the regression tests if built with -O0.
Diffstat (limited to 'src/port/getaddrinfo.c')
-rw-r--r-- | src/port/getaddrinfo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/port/getaddrinfo.c b/src/port/getaddrinfo.c index db19878ae14..b6368ae6916 100644 --- a/src/port/getaddrinfo.c +++ b/src/port/getaddrinfo.c @@ -328,12 +328,10 @@ gai_strerror(int errcode) case EAI_MEMORY: return "Not enough memory"; #endif -#ifdef EAI_NODATA -#if !defined(WIN64) && !defined(WIN32_ONLY_COMPILER) /* MSVC/WIN64 duplicate */ +#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME /* MSVC/WIN64 duplicate */ case EAI_NODATA: return "No host data of that type was found"; #endif -#endif #ifdef EAI_SERVICE case EAI_SERVICE: return "Class type not found"; |