forked from OSchip/llvm-project
[sanitizer] Android lacks ucontext_t definition.
llvm-svn: 178756
This commit is contained in:
parent
7b0e132551
commit
24b2169e07
|
@ -29,9 +29,12 @@
|
|||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ucontext.h>
|
||||
#include <time.h>
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
#include <sys/ucontext.h>
|
||||
#endif // !SANITIZER_ANDROID
|
||||
|
||||
#if SANITIZER_LINUX
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/epoll.h>
|
||||
|
@ -47,7 +50,10 @@ namespace __sanitizer {
|
|||
unsigned struct_sigaction_sz = sizeof(struct sigaction);
|
||||
unsigned struct_itimerval_sz = sizeof(struct itimerval);
|
||||
unsigned pthread_t_sz = sizeof(pthread_t);
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
unsigned ucontext_t_sz = sizeof(ucontext_t);
|
||||
#endif // !SANITIZER_ANDROID
|
||||
|
||||
#if SANITIZER_LINUX
|
||||
unsigned struct_rlimit_sz = sizeof(struct rlimit);
|
||||
|
|
|
@ -27,7 +27,10 @@ namespace __sanitizer {
|
|||
extern unsigned struct_sigaction_sz;
|
||||
extern unsigned struct_itimerval_sz;
|
||||
extern unsigned pthread_t_sz;
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
extern unsigned ucontext_t_sz;
|
||||
#endif // !SANITIZER_ANDROID
|
||||
|
||||
#if SANITIZER_LINUX
|
||||
extern unsigned struct_rlimit_sz;
|
||||
|
|
Loading…
Reference in New Issue