diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-01-30 14:39:27 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-01-30 14:39:27 +0000 |
commit | 00e0236665fa4bddb27fe56d292983777a7951a7 (patch) | |
tree | 5794b4d55f5504461fce0907bb01104129fac616 /compiler-rt | |
parent | 087efd23d68b0ce408acc86c5433143410a2e74c (diff) | |
download | bcm5719-llvm-00e0236665fa4bddb27fe56d292983777a7951a7.tar.gz bcm5719-llvm-00e0236665fa4bddb27fe56d292983777a7951a7.zip |
asan/tsan: manually define FUTEX constants, because <linux/futes.h> header is broken on some linux distributions
llvm-svn: 173933
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index 8b9ba38ca77..ec6d837dd92 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -30,11 +30,14 @@ #include <sys/syscall.h> #include <sys/time.h> #include <sys/types.h> +#include <sys/prctl.h> #include <unistd.h> #include <unwind.h> #include <errno.h> -#include <sys/prctl.h> -#include <linux/futex.h> + +// <linux/futex.h> is broken on some linux distributions. +const int FUTEX_WAIT = 0; +const int FUTEX_WAKE = 1; // Are we using 32-bit or 64-bit syscalls? // x32 (which defines __x86_64__) has SANITIZER_WORDSIZE == 32 |