[PATCH] [Tsan] Fix the thread_name tests to build on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Thu Oct 23 04:13:47 PDT 2014


================
Comment at: test/tsan/thread_name.cc:18
@@ -17,3 +23,3 @@
 void *Thread2(void *x) {
-#if SANITIZER_LINUX && __GLIBC_PREREQ(2, 12)
   pthread_setname_np(pthread_self(), "Thread2");
----------------
BTW, shouldn't it be ##defined(__linux__) && ...##?

http://reviews.llvm.org/D5855






More information about the llvm-commits mailing list