New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socketmodule.c: fix for platforms w/o IPV6 (i.e.Solaris 5.7) #39568
Comments
Fixes Bug bpo-818490 socketmodule.c will not compile on platforms without For example (lines 2971-2977): #ifndef ENABLE_IPV6
if(af == AF_INET6) {
PyErr_SetString(socket_error,
"can't use AF_INET6, IPv6 is disabled");
return NULL;
}
#endif The code is putting error checking in when IPV6 is not I simply removed the block and let the check fall to the I'm not so clear as what to do w/ INET_ADDRSTRLEN In the patch, I simply substituted it with 16 which is the The diff given is against the r232 cvs tag. |
Logged In: YES The patch is incorrect: The block checking for AF_INET6 Instead, you should check whether AF_INET6 is defined also. |
Logged In: YES Sounds good. I guarded that code with: #if ! defined(ENABLE_IPV6) && defined(AF_INET6)
Uploaded attached new patch. |
Logged In: YES Somethink like this has been committed as socketmodule.c 1.290. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: