From: YOSHIFUJI Hideaki / 吉藤英明 Date: Thu, 18 May 2006 05:56:59 GMT Subject: Re: cvsimport weird Message-ID: <20060518.145659.76628953.yoshfuji@linux-ipv6.org> In-Reply-To: <1147931094.32050.51.camel@dv> In article <1147931094.32050.51.camel@dv> (at Thu, 18 May 2006 01:44:54 -0400), Pavel Roskin says: > Address resolution is broken in cvsps on 64-bit machines. This patch to > cvsps is needed: > > --- cbtcommon/tcpsocket.c > +++ cbtcommon/tcpsocket.c > @@ -198,7 +198,7 @@ convert_address(long *dest, const char * > memcpy(dest, &ip.s_addr, sizeof(ip.s_addr)); > } > #else > - if ( (*dest = inet_addr(addr_str)) != -1) > + if ( (*dest = inet_addr(addr_str)) != INADDR_NONE) > { > /* nothing */ > } You need to define INADDR_NONE on some platforms; e.g. Solaris. --yoshfuji