forked from OSchip/llvm-project
[sanitizer] Fixed includes in sanitizer_linux.cc for Android.
llvm-svn: 181327
This commit is contained in:
parent
d6538338fd
commit
88d0c664ef
|
@ -24,7 +24,9 @@
|
||||||
#include "sanitizer_procmaps.h"
|
#include "sanitizer_procmaps.h"
|
||||||
#include "sanitizer_stacktrace.h"
|
#include "sanitizer_stacktrace.h"
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
#include <asm/prctl.h>
|
#include <asm/prctl.h>
|
||||||
|
#endif
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -64,7 +66,9 @@ const int FUTEX_WAKE = 1;
|
||||||
# define SANITIZER_LINUX_USES_64BIT_SYSCALLS 0
|
# define SANITIZER_LINUX_USES_64BIT_SYSCALLS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
extern "C" int arch_prctl(int code, __sanitizer::uptr *addr);
|
extern "C" int arch_prctl(int code, __sanitizer::uptr *addr);
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace __sanitizer {
|
namespace __sanitizer {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue