Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 32183:a799b0d1c568 legacy-trunk
Patch #924294: Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 02 Jun 2004 12:35:29 +0000 |
| parents | 092ac13a4c40 |
| children | 70dee2b193f7 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Wed Jun 02 10:51:05 2004 +0000 +++ b/Modules/socketmodule.c Wed Jun 02 12:35:29 2004 +0000 @@ -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");
