From 7e6014f09cf0a6088d958cc169d92cce77b5512f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 2 Jun 2004 12:36:49 +0000 Subject: [PATCH] Patch #924294: Do not check for AF_INET6 if it is not defined. --- Misc/NEWS | 2 ++ Modules/socketmodule.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 62be689ff76f..a331efa3f9fd 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,8 @@ What's New in Python 2.3.4 (final)? Extension modules ----------------- +- Patch #924294: Do no check for AF_INET6 if it is not defined. + - Patch #954115: Properly handle UNC roots in nt.stat. What's New in Python 2.3.4 (final)? diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e9375faa9226..edf587a70de4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2975,7 +2975,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"); -- 2.47.3