You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@hermes.si> on 2000/11/10 10:52:43 UTC

APR broken on Solaris 2.6 this time...

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                 <br...@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70