Re: [PHP-DEV] PHP5 compilation broken? Patch

[email protected] (Marco Tabini)
Newsgroups php.dev
Message-ID <[email protected]>
Never mind... I had updated the wrong head :(

Sorry!


Mt.

On Fri, 2003-02-28 at 23:33, Marco Tabini wrote:
> Howdy--
> 
> Tried to compile today's CVS of PHP5 but I get a compilation error in
> main/network.c. Here's a patch that (I think) should take care of the
> problem:
> 
> Index: main/network.c
> ===================================================================
> RCS file: /repository/php4/main/network.c,v
> retrieving revision 1.95
> diff -u -r1.95 network.c
> --- main/network.c	28 Feb 2003 21:03:36 -0000	1.95
> +++ main/network.c	1 Mar 2003 04:31:37 -0000
> @@ -509,7 +509,7 @@
>  
>  				break;
>  
> -#if HAVE_IPV6
> +#if HAVE_IPV6 && HAVE_INET_NTOP
>  			case AF_INET6:
>  				buf = (char*)inet_ntop(sa->sa_family, &((struct
> sockaddr_in6*)sa)->sin6_addr, (char *)&abuf, sizeof(abuf));
>  				if (buf) {
> 
> 
> Hope I got the right patch format.
> 
> Marco
-- 
------------
Marco Tabini
President

Marco Tabini & Associates, Inc.
28 Bombay Ave.
Toronto, ON M3H 1B7
Canada

Phone: (416) 630-6202
Fax: (416) 630-5057
Weblog: http://blogs.phparch.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.