diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-05-29 11:55:27 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-05-29 11:55:27 +0000 |
commit | e215980807069d7bdeb1beff8377b3fe7be33c5f (patch) | |
tree | db90ae467e26a16bcd342032ffbfd4a3050b0aa4 | |
parent | bc33e138d82759074f8333239f96506027731e20 (diff) |
[sanitizer] Fix Mac build.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182845 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_platform_limits_posix.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h index c5cae881c..0c761446c 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -54,6 +54,22 @@ namespace __sanitizer { uptr iov_len; }; +#if SANITIZER_ANDROID || SANITIZER_MAC + struct __sanitizer_msghdr { + void *msg_name; + unsigned msg_namelen; + struct __sanitizer_iovec *msg_iov; + unsigned msg_iovlen; + void *msg_control; + unsigned msg_controllen; + int msg_flags; + }; + struct __sanitizer_cmsghdr { + unsigned cmsg_len; + int cmsg_level; + int cmsg_type; + }; +#else struct __sanitizer_msghdr { void *msg_name; unsigned msg_namelen; @@ -63,12 +79,12 @@ namespace __sanitizer { uptr msg_controllen; int msg_flags; }; - struct __sanitizer_cmsghdr { uptr cmsg_len; int cmsg_level; int cmsg_type; }; +#endif // This thing depends on the platform. We are only interested in the upper // limit. Verified with a compiler assert in .cc. |