From: Dmitry Vyukov Date: Wed, 30 Jan 2013 14:39:27 +0000 (+0000) Subject: asan/tsan: manually define FUTEX constants, because header is broken... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00e0236665fa4bddb27fe56d292983777a7951a7;p=platform%2Fupstream%2Fllvm.git asan/tsan: manually define FUTEX constants, because header is broken on some linux distributions llvm-svn: 173933 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index 8b9ba38..ec6d837 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -30,11 +30,14 @@ #include #include #include +#include #include #include #include -#include -#include + +// 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