commit | 04697e89b910abc59b1f0f85971c6839406b56f2 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Wed Jun 02 12:35:29 2004 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Wed Jun 02 12:35:29 2004 +0000 |
tree | fdb369a179cc6b49861a009c9d6f186d4c59a1aa | |
parent | 7dc8ec9091ca9461c2742332e10d25ef5790a094 [diff] |
Patch #924294: Do not check for AF_INET6 if it is not defined. Will backport to 2.3.
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 @@ 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");