From c2e3ba9eedc4cbe47f76d01bf067d987e6d58904 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 5 Jul 2013 15:04:56 +0000 Subject: [PATCH] [sanitizer] Fix mac build. llvm-svn: 185706 --- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h index 24a2ef5..91f2f11 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -55,7 +55,11 @@ namespace __sanitizer { uptr iov_len; }; +#if SANITIZER_MAC + typedef unsigned long __sanitizer_pthread_key_t; +#else typedef unsigned __sanitizer_pthread_key_t; +#endif #if SANITIZER_ANDROID || SANITIZER_MAC struct __sanitizer_msghdr { -- 2.7.4