diff options
Diffstat (limited to 'pr/include/md/_openvms.h')
-rw-r--r-- | pr/include/md/_openvms.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pr/include/md/_openvms.h b/pr/include/md/_openvms.h index 6f888b72..e79d4a79 100644 --- a/pr/include/md/_openvms.h +++ b/pr/include/md/_openvms.h @@ -40,6 +40,7 @@ #define _PR_VMBASE 0x30000000 #define _PR_STACK_VMBASE 0x50000000 #define _MD_DEFAULT_STACK_SIZE 131072L +#define _MD_MINIMUM_STACK_SIZE 131072L /* ** This is not defined on OpenVMS. I believe its only used in GC code, and @@ -81,6 +82,36 @@ struct ip_mreq { #define _PR_STAT_HAS_ONLY_ST_ATIME #define _PR_NO_LARGE_FILES +/* IPv6 support */ +#define _PR_HAVE_SOCKADDR_LEN +#define _PR_HAVE_GETIPNODEBYNAME +#define _PR_HAVE_GETIPNODEBYADDR +#define _PR_INET6_PROBE +#ifndef _PR_INET6 +#define AF_INET6 26 +#define AI_V4MAPPED 0x00000010 +#define AI_ALL 0x00000008 +#define AI_ADDRCONFIG 0x00000020 +#endif + +#define _PR_HAVE_MD_SOCKADDR_IN6 +/* if we have a quadword field defined in the structure, then its length */ +/* will be a multiple of 8, and connect() won't accept 32 (it wants 28) */ +struct _md_in6_addr { + union { + PRUint8 _S6_u8[16]; + PRUint16 _S6_u16[8]; + PRUint32 _S6_u32[4]; + } _S6_un; +}; +struct _md_sockaddr_in6 { + PRUint16 sin6_family; + PRUint16 sin6_port; + PRUint32 sin6_flowinfo; + struct _md_in6_addr sin6_addr; + PRUint32 sin6_scope_id; +}; + #undef USE_SETJMP #include <setjmp.h> |