diff options
author | wtchang%redhat.com <devnull@localhost> | 2007-01-17 18:11:06 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2007-01-17 18:11:06 +0000 |
commit | eb1b99de7d6479783ee43d5aaa286f124bd5173e (patch) | |
tree | e7b31c4fe690c2fe9961a6d54a9c5bb028d383a6 | |
parent | 599a256ead6adb2f7dbb64ebd34b88f26318309e (diff) | |
download | nspr-hg-eb1b99de7d6479783ee43d5aaa286f124bd5173e.tar.gz |
Bug 329807: define struct _md_sockaddr_in6 because HP-UX's struct
sockaddr_in6 is only 32-bit aligned. r=nelsonb
-rw-r--r-- | pr/include/md/_hpux.h | 18 |
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) |