X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=libevent%2Fipv6-internal.h;h=e3737118c16cdf23a2aa31b58c4b3c0c6db7f773;hp=7d6fb7361b3f80d18bed814f89afa28de869ffc9;hb=ffead2c5a73949fea4e8462f99a6c2555568473b;hpb=ad220cd96d55445846d30b951a188ec5f9b849b2 diff --git a/libevent/ipv6-internal.h b/libevent/ipv6-internal.h index 7d6fb736..e3737118 100644 --- a/libevent/ipv6-internal.h +++ b/libevent/ipv6-internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010 Niels Provos and Nick Mathewson + * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -59,12 +59,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