Commit 17b8f41b authored by Martin v. Löwis's avatar Martin v. Löwis

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

Will backport to 2.3.
parent 5fc77d76
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment