[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

APR broken on Solaris 2.6 this time...

From: Branko Čibej <branko.cibej_at_hermes.si>
Date: 2000-11-10 11:52:43 CET

INADDR_NONE is not defined on Solaris 2.6. Add configury for that.

        * acconfig.h: Add HAVE_INADDR_NONE.
        * configure.in: Add check for INADDR_NONE.
        * include/apr.h.in: Defune INADDR_NONE if it isn't available.

Index: acconfig.h
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/lib/apr/acconfig.h,v
retrieving revision 1.35
diff -u -p -r1.35 acconfig.h
--- acconfig.h 2000/09/22 11:37:05 1.35
+++ acconfig.h 2000/11/10 10:45:16
@@ -12,6 +12,7 @@
 #undef HAVE_TRUERAND
 #undef HAVE_POLLIN
 #undef HAVE_isascii
+#undef HAVE_INADDR_NONE
 
 /* Cross process serialization techniques */
 #undef USE_FLOCK_SERIALIZE
Index: configure.in
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/lib/apr/configure.in,v
retrieving revision 1.167
diff -u -p -r1.167 configure.in
--- configure.in 2000/11/08 18:32:49 1.167
+++ configure.in 2000/11/10 10:45:17
@@ -217,6 +217,7 @@ sendfile="0"
 AC_CHECK_FUNCS(sendfile send_file, [ sendfile="1" ])
 AC_CHECK_FUNCS(fork, [ fork="1" ], [ fork="0" ])
 AC_CHECK_FUNCS(getpass)
+AC_CHECK_DEFINE(INADDR_NONE, netinet/in.h)
 APR_CHECK_INET_ADDR
 APR_CHECK_INET_NETWORK
 AC_CHECK_FUNC(_getch)
Index: include/apr.h.in
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/lib/apr/include/apr.h.in,v
retrieving revision 1.49
diff -u -p -r1.49 apr.h.in
--- include/apr.h.in 2000/11/08 11:53:28 1.49
+++ include/apr.h.in 2000/11/10 10:45:17
@@ -76,6 +76,11 @@
 #define APR_HAVE_BZERO @have_bzero@
 #define APR_HAVE_IPV6 @have_sockaddr_in6@
 
+#ifdef APR_HAVE_INET_ADDR
+# ifndef HAVE_INADDR_NONE
+# define INADDR_NONE ((unsigned long) -1)
+# endif
+#endif
 
 #if APR_HAVE_SYS_TYPES_H
 #include <sys/types.h>

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70
Received on Sat Oct 21 14:36:14 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.