PHP5 compilation broken? Patch

[email protected] (Marco Tabini)
Newsgroups php.dev
Message-ID <[email protected]>
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
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.