delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Wed, 27 Jul 2005 13:35:35 -0400 |
From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Is cygwin/in.h missing INET_ADDRSTRLEN? |
Message-ID: | <20050727173535.GA7304@trixie.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
References: | <20050727172031 DOT GA2104 AT tishler DOT net> |
Mime-Version: | 1.0 |
In-Reply-To: | <20050727172031.GA2104@tishler.net> |
User-Agent: | Mutt/1.5.8i |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |