[Python-Dev] cvs socketmodule.c and IPV6 disabled

"Martin v. L÷wis" martin@v.loewis.de
Tue, 29 Apr 2003 00:17:42 +0200

Chris Johns wrote:

> ../python-cvs/dist/src/Modules/socketmodule.c:2797: sizeof applied to an 
> incomplete type

I see. And the system does have inet_pton? *That* sounds like a bug to 
me - there should be no inet_pton if the IPv6 API is unsupported.

So I think the configure test should be changed to define HAVE_PTON only 
if all prerequisites of its usage are met (or the entire function should 
be hidden if IPv6 is disabled).