forked from OSchip/llvm-project
[sanitizer] Use ucontext_t instead of "struct ucontext".
Fixes Mac build. llvm-svn: 178755
This commit is contained in:
parent
1f8b3538b4
commit
7b0e132551
|
@ -836,7 +836,7 @@ static void SignalHandler(int signo) {
|
|||
|
||||
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];
|
||||
|
|
|
@ -45,9 +45,9 @@ namespace __sanitizer {
|
|||
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);
|
||||
|
|
|
@ -25,9 +25,9 @@ namespace __sanitizer {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue