[sanitizer] Use ucontext_t instead of "struct ucontext".
Fixes Mac build.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178755 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/msan/msan_interceptors.cc b/lib/msan/msan_interceptors.cc
index 00c54f2..0ed00f6 100644
--- a/lib/msan/msan_interceptors.cc
+++ b/lib/msan/msan_interceptors.cc
@@ -836,7 +836,7 @@
static void SignalAction(int signo, void *si, void *uc) {
__msan_unpoison(si, __sanitizer::struct_sigaction_sz);
- __msan_unpoison(uc, __sanitizer::struct_ucontext_sz);
+ __msan_unpoison(uc, __sanitizer::ucontext_t_sz);
typedef void (*sigaction_cb)(int, void *, void *);
sigaction_cb cb = (sigaction_cb)sigactions[signo];
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
index fd39cb2..8363ea5 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -45,9 +45,9 @@
unsigned struct_tm_sz = sizeof(struct tm);
unsigned struct_passwd_sz = sizeof(struct passwd);
unsigned struct_sigaction_sz = sizeof(struct sigaction);
- unsigned struct_ucontext_sz = sizeof(struct ucontext);
unsigned struct_itimerval_sz = sizeof(struct itimerval);
unsigned pthread_t_sz = sizeof(pthread_t);
+ unsigned ucontext_t_sz = sizeof(ucontext_t);
#if SANITIZER_LINUX
unsigned struct_rlimit_sz = sizeof(struct rlimit);
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
index bdec8e5..6f516c6 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -25,9 +25,9 @@
extern unsigned struct_tm_sz;
extern unsigned struct_passwd_sz;
extern unsigned struct_sigaction_sz;
- extern unsigned struct_ucontext_sz;
extern unsigned struct_itimerval_sz;
extern unsigned pthread_t_sz;
+ extern unsigned ucontext_t_sz;
#if SANITIZER_LINUX
extern unsigned struct_rlimit_sz;