diff options
Diffstat (limited to 'compiler-rt/lib/tsan/lit_tests/thread_name.cc')
-rw-r--r-- | compiler-rt/lib/tsan/lit_tests/thread_name.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/lit_tests/thread_name.cc b/compiler-rt/lib/tsan/lit_tests/thread_name.cc index afb882fcdf9..37f308ffbc0 100644 --- a/compiler-rt/lib/tsan/lit_tests/thread_name.cc +++ b/compiler-rt/lib/tsan/lit_tests/thread_name.cc @@ -15,7 +15,7 @@ void *Thread1(void *x) { } void *Thread2(void *x) { -#if defined(__linux__) && __GLIBC_PREREQ(2, 12) +#if SANITIZER_LINUX && __GLIBC_PREREQ(2, 12) pthread_setname_np(pthread_self(), "Thread2"); #else AnnotateThreadName(__FILE__, __LINE__, "Thread2"); |