EAI_NONAME -> WS_EAI_NODATA, check for EAI_NONAME and EAI_NODATA.

This commit is contained in:
Marcus Meissner 2005-11-22 12:00:43 +00:00 committed by Alexandre Julliard
parent c5d8c105c3
commit 200f005d66
1 changed files with 11 additions and 0 deletions

View File

@ -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 }