Bug 329807: set USE_IPV6=1 (define _PR_INET6) on HP-UX B.11.23 or later, NSPR_4_6_BRANCH
authorwtchang%redhat.com
Sat, 13 Jan 2007 00:50:22 +0000
branchNSPR_4_6_BRANCH
changeset 3779 83d4961e91acfc2c4cfe35957474cc1198db746a
parent 3768 d9e92e47d58ab48bcfae1584ea1ce8cf799c9135
child 3782 b73b29404aa568fe241c29f5e32c8d4298fc568e
push idunknown
push userunknown
push dateunknown
bugs329807
Bug 329807: set USE_IPV6=1 (define _PR_INET6) on HP-UX B.11.23 or later, based on information from HP. r=nelsonb,darin Modified files: configure configure.in _hpux.h Tag: NSPR_4_6_BRANCH
configure
configure.in
pr/include/md/_hpux.h
--- a/configure
+++ b/configure
@@ -3576,20 +3576,20 @@ EOF
 
     if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
         cat >> confdefs.h <<\EOF
 #define HAVE_POINTER_LOCALTIME_R 1
 EOF
 
     fi
 
-    # HP-UX 11i (B.11.11) or higher
+    # HP-UX 11i v2 (B.11.23) or higher
     
     case "$OS_RELEASE" in
-    [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[2-9]*|B.11.1[1-9]*)
+    [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
         USE_IPV6=1
         ;;
     esac
     
 
     if test "$OS_RELEASE" = "B.10.01"; then
         cat >> confdefs.h <<\EOF
 #define HPUX10 1
--- a/configure.in
+++ b/configure.in
@@ -1195,20 +1195,20 @@ tools are selected during the Xcode/Deve
     if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
         AC_DEFINE(HAVE_INT_LOCALTIME_R)
     fi
 
     if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
         AC_DEFINE(HAVE_POINTER_LOCALTIME_R)
     fi
 
-    # HP-UX 11i (B.11.11) or higher
+    # HP-UX 11i v2 (B.11.23) or higher
     changequote(<<,>>)
     case "$OS_RELEASE" in
-    [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[2-9]*|B.11.1[1-9]*)
+    [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
         USE_IPV6=1
         ;;
     esac
     changequote([,])
 
     if test "$OS_RELEASE" = "B.10.01"; then
         AC_DEFINE(HPUX10)
         DEFAULT_IMPL_STRATEGY=_EMU
--- a/pr/include/md/_hpux.h
+++ b/pr/include/md/_hpux.h
@@ -98,21 +98,22 @@ extern PRInt32 _PR_ia64_AtomicIncrement(
 extern PRInt32 _PR_ia64_AtomicDecrement(PRInt32 *val);
 #define _MD_ATOMIC_DECREMENT          _PR_ia64_AtomicDecrement
 extern PRInt32 _PR_ia64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
 #define _MD_ATOMIC_ADD                _PR_ia64_AtomicAdd
 extern PRInt32 _PR_ia64_AtomicSet(PRInt32 *val, PRInt32 newval);
 #define _MD_ATOMIC_SET                _PR_ia64_AtomicSet
 #endif
 
-#ifdef _PR_INET6
-#define _PR_HAVE_INET_NTOP
 #define _PR_HAVE_GETIPNODEBYNAME
 #define _PR_HAVE_GETIPNODEBYADDR
 #define _PR_HAVE_GETADDRINFO
+#ifdef _PR_INET6
+#define _PR_HAVE_INET_NTOP
+#else
 #define _PR_INET6_PROBE
 #endif
 
 #if !defined(_PR_PTHREADS)
 
 #include <syscall.h>
 #include <setjmp.h>