summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2007-01-17 18:18:05 +0000
committerwtchang%redhat.com <devnull@localhost>2007-01-17 18:18:05 +0000
commit52cf7f0770ecc38bcc2d416fded2cc575f4ad279 (patch)
treea9938e14d3a86cdec8503393f8df8d39960319d8
parent2b4030dc7eda549053b9c1fe5511eeed931dec0d (diff)
downloadnspr-hg-52cf7f0770ecc38bcc2d416fded2cc575f4ad279.tar.gz
Bug 329807: define struct _md_sockaddr_in6 because HP-UX's structSONGBIRD_20070117_01_TAG
sockaddr_in6 is only 32-bit aligned. r=nelsonb Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/include/md/_hpux.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pr/include/md/_hpux.h b/pr/include/md/_hpux.h
index aa311c4e..2a6f177f 100644
--- a/pr/include/md/_hpux.h
+++ b/pr/include/md/_hpux.h
@@ -110,6 +110,24 @@ extern PRInt32 _PR_ia64_AtomicSet(PRInt32 *val, PRInt32 newval);
#define _PR_HAVE_INET_NTOP
#else
#define _PR_INET6_PROBE
+#define _PR_HAVE_MD_SOCKADDR_IN6
+/* isomorphic to struct in6_addr on HP-UX B.11.23 */
+struct _md_in6_addr {
+ union {
+ PRUint8 _S6_u8[16];
+ PRUint16 _S6_u16[8];
+ PRUint32 _S6_u32[4];
+ PRUint32 __S6_align;
+ } _s6_un;
+};
+/* isomorphic to struct sockaddr_in6 on HP-UX B.11.23 */
+struct _md_sockaddr_in6 {
+ PRUint16 sin6_family;
+ PRUint16 sin6_port;
+ PRUint32 sin6_flowinfo;
+ struct _md_in6_addr sin6_addr;
+ PRUint32 sin6_scope_id;
+};
#endif
#if !defined(_PR_PTHREADS)