This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is cygwin/in.h missing INET_ADDRSTRLEN?


On Wed, Jul 27, 2005 at 01:20:31PM -0400, Jason Tishler wrote:
>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?

SUSv3 says that INET_ADDRSTRLEN should be defined, so I've added it.

I'm not going to define INET6_ADDRSTRLEN since we don't currently support
ipv6.

cgf

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]