[sanitizer] Android lacks ucontext_t definition.

llvm-svn: 178756
This commit is contained in:
Evgeniy Stepanov 2013-04-04 09:21:48 +00:00
parent 7b0e132551
commit 24b2169e07
2 changed files with 10 additions and 1 deletions

View File

@ -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);

View File

@ -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;