Patch #520062: Support IPv6 with VC.NET.

This commit is contained in:
Martin v. Löwis 2002-03-01 08:31:07 +00:00
parent 31e233aa7a
commit 272cb40e31
3 changed files with 17 additions and 0 deletions

View file

@ -409,8 +409,11 @@ PyGAI_Err(int error)
{
PyObject *v;
#ifdef EAI_SYSTEM
/* EAI_SYSTEM is not available on Windows XP. */
if (error == EAI_SYSTEM)
return PySocket_Err();
#endif
#ifdef HAVE_GAI_STRERROR
v = Py_BuildValue("(is)", error, gai_strerror(error));