diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-31 16:45:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-31 16:45:23 -0500 |
commit | 22845886c6561c26b9aa29cfc01859946d39d811 (patch) | |
tree | 8e45476c8761bcc074e151ae00e7247fa8baa300 /ipv6-internal.h | |
parent | da13d64486b6888465dae8df2edacf101a593f26 (diff) | |
parent | 3c8f4e758e5a636e79f518b70319b115c39b1f23 (diff) | |
download | libevent-22845886c6561c26b9aa29cfc01859946d39d811.tar.gz |
Merge remote branch 'origin/patches-2.0'
Diffstat (limited to 'ipv6-internal.h')
-rw-r--r-- | ipv6-internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ipv6-internal.h b/ipv6-internal.h index d5d1d3a3..18f7ba5d 100644 --- a/ipv6-internal.h +++ b/ipv6-internal.h @@ -61,12 +61,21 @@ typedef int sa_family_t; #ifndef _EVENT_HAVE_STRUCT_SOCKADDR_IN6 struct sockaddr_in6 { + /* This will fail if we find a struct sockaddr that doesn't have + * sa_family as the first element. */ sa_family_t sin6_family; ev_uint16_t sin6_port; struct in6_addr sin6_addr; }; #endif +#ifndef AF_INET6 +#define AF_INET6 3333 +#endif +#ifndef PF_INET6 +#define PF_INET6 AF_INET6 +#endif + #ifdef __cplusplus } #endif |