r13838@catbus: nickm | 2007-07-19 15:50:16 -0400

Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.


svn:r10883
This commit is contained in:
Nick Mathewson 2007-07-19 19:50:20 +00:00
parent 679b55eb1f
commit b2772f93cb

View File

@ -283,6 +283,16 @@ struct in6_addr
};
#endif
#if defined(__APPLE__) || defined(__darwin__)
/* OSX seems not to define these. */
#ifndef s6_addr16
#define s6_addr16 __u6_addr.__u6_addr16
#endif
#ifndef s6_addr32
#define s6_addr32 __u6_addr.__u6_addr32
#endif
#endif
#if !defined(HAVE_STRUCT_SOCKADDR_IN6)
struct sockaddr_in6 {
uint16_t sin6_family; /* XXXX020 right size???? */