delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/27/13:18:46

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:20:31 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Is cygwin/in.h missing INET_ADDRSTRLEN?
Message-ID: <20050727172031.GA2104@tishler.net>
Mail-Followup-To: Cygwin <cygwin AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019