Re: cvsimport weird

From: B <吉藤英明>
Date: 2006-05-18 15:56:59
In article <1147931094.32050.51.camel@dv> (at Thu, 18 May 2006 01:44:54 -0400), Pavel Roskin <proski@gnu.org> 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu May 18 15:57:11 2006

This archive was generated by hypermail 2.1.8 : 2006-05-18 15:57:29 EST