mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Patch #520062: Support IPv6 with VC.NET.
This commit is contained in:
parent
31e233aa7a
commit
272cb40e31
3 changed files with 17 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue