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

Martin v. Löwis martin@v.loewis.de
28 Apr 2003 22:07:08 +0200


Chris Johns <cjohns@cybertec.com.au> writes:

> Porting Python to the open source realtime OS called RTEMS I get a
> compile error on line 2797 of socketmodule.c. 

In my copy, this is the line

	char packed[MAX(sizeof(struct in_addr), sizeof(struct in6_addr))];

Can you report more on the nature of the compile error (such as its
*message*)?

> Should this code check ENABLE_IPV6 as IPV6 is not support on RTEMS yet.

(assuming this is a question): I'm unsure. It should not cause a
compile time failure, period.

> Also where is INET_ADDRSTRLEN suppose to be defined ?

<netinet/in.h>

Regards,
Martin