diff options
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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"); |