This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Is cygwin/in.h missing INET_ADDRSTRLEN?
- From: Jason Tishler <jason at tishler dot net>
- To: Cygwin <cygwin at cygwin dot com>
- Date: Wed, 27 Jul 2005 13:20:31 -0400
- Subject: Is cygwin/in.h missing INET_ADDRSTRLEN?
While compiling Python under Cygwin 1.5.18, I got the following error:
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -I. -I/tmp/Python-2.4/./Include -I/usr/local/include -I/tmp/Python-2.4/Include -I/tmp/Python-2.4 -c /tmp/Python-2.4/Modules/socketmodule.c -o build/temp.cygwin-1.5.18-i686-2.4/socketmodule.o
/tmp/Python-2.4/Modules/socketmodule.c: In function `socket_inet_ntop': /tmp/Python-2.4/Modules/socketmodule.c:3350: error: `INET_ADDRSTRLEN' undeclared (first use in this function)
After Googling around and looking at netinet/in.h on Linux and Solaris,
it seems like cygwin/in.h should have the following #defines:
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
Can someone more knowledgeable in this area comment on the above?
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/