Commit 200f005d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

EAI_NONAME -> WS_EAI_NODATA, check for EAI_NONAME and EAI_NODATA.

parent c5d8c105
...@@ -332,7 +332,18 @@ static const int ws_eai_map[][2] = ...@@ -332,7 +332,18 @@ static const int ws_eai_map[][2] =
MAP_OPTION( EAI_FAIL ), MAP_OPTION( EAI_FAIL ),
MAP_OPTION( EAI_FAMILY ), MAP_OPTION( EAI_FAMILY ),
MAP_OPTION( EAI_MEMORY ), MAP_OPTION( EAI_MEMORY ),
/* Note: EAI_NODATA is deprecated, but still
* used by Windows and Linux... We map the newer
* EAI_NONAME to EAI_NODATA for now until Windows
* changes too.
*/
#ifdef EAI_NODATA
MAP_OPTION( EAI_NODATA ), MAP_OPTION( EAI_NODATA ),
#endif
#ifdef EAI_NONAME
{ WS_EAI_NODATA, EAI_NONAME },
#endif
MAP_OPTION( EAI_SERVICE ), MAP_OPTION( EAI_SERVICE ),
MAP_OPTION( EAI_SOCKTYPE ), MAP_OPTION( EAI_SOCKTYPE ),
{ 0, 0 } { 0, 0 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment