Patch #924294: Do not check for AF_INET6 if it is not defined.

Will backport to 2.3.
This commit is contained in:
Martin v. Löwis 2004-06-02 12:35:29 +00:00
parent 7dc8ec9091
commit 04697e89b9
1 changed files with 1 additions and 1 deletions

View File

@ -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");