Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 32184:f159b15f1f5c 2.3
Patch #924294: Do not check for AF_INET6 if it is not defined.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 02 Jun 2004 12:36:49 +0000 |
| parents | 64fcff121f7b |
| children | eab174d0ed03 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Wed Jun 02 10:07:01 2004 +0000 +++ b/Modules/socketmodule.c Wed Jun 02 12:36:49 2004 +0000 @@ -2975,7 +2975,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");
