From 04697e89b910abc59b1f0f85971c6839406b56f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 2 Jun 2004 12:35:29 +0000 Subject: [PATCH] Patch #924294: Do not check for AF_INET6 if it is not defined. Will backport to 2.3. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 7efb890ff5d..8bf14d4ac6f 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");