mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Patch #924294: Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.
This commit is contained in:
parent
7dc8ec9091
commit
04697e89b9
1 changed files with 1 additions and 1 deletions
|
@ -3100,7 +3100,7 @@ socket_inet_pton(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef ENABLE_IPV6
|
||||
#if !defined(ENABLE_IPV6) && defined(AF_INET6)
|
||||
if(af == AF_INET6) {
|
||||
PyErr_SetString(socket_error,
|
||||
"can't use AF_INET6, IPv6 is disabled");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue