summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-06-02 12:35:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-06-02 12:35:29 (GMT)
commit04697e89b910abc59b1f0f85971c6839406b56f2 (patch)
treefdb369a179cc6b49861a009c9d6f186d4c59a1aa
parent7dc8ec9091ca9461c2742332e10d25ef5790a094 (diff)
downloadcpython-04697e89b910abc59b1f0f85971c6839406b56f2.zip
cpython-04697e89b910abc59b1f0f85971c6839406b56f2.tar.gz
cpython-04697e89b910abc59b1f0f85971c6839406b56f2.tar.bz2
Patch #924294: Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 7efb890..8bf14d4 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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");