diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-19 19:50:20 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-19 19:50:20 +0000 |
commit | b2772f93cb922ed695ad0c9090ec5818fa3b60f5 (patch) | |
tree | 96e1d8ae2b6d7f389eb715bad57669bdfee24a7a /src/common/compat.h | |
parent | 679b55eb1f468d7ce0de4d6945226bc99b1af04d (diff) | |
download | tor-b2772f93cb922ed695ad0c9090ec5818fa3b60f5.tar tor-b2772f93cb922ed695ad0c9090ec5818fa3b60f5.tar.gz |
r13838@catbus: nickm | 2007-07-19 15:50:16 -0400
Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.
svn:r10883
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index ad791b9bf..cd9345226 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -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???? */ |