LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lldb-old-glibc.diff of Package llvm (Project home:matz2:sle11sp4)

--- ./lldb-3.8.0.src/source/Host/linux/HostThreadLinux.cpp.mm	2015-09-22 14:52:31.000000000 +0000
+++ ./lldb-3.8.0.src/source/Host/linux/HostThreadLinux.cpp	2016-04-27 15:57:20.000000000 +0000
@@ -30,7 +30,7 @@ HostThreadLinux::HostThreadLinux(lldb::t
 void
 HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name)
 {
-#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
+#if (defined(__GLIBC__) && defined(_GNU_SOURCE) && __GLIBC_PREREQ(2,12)) || defined(__ANDROID__)
     ::pthread_setname_np(thread, name.data());
 #else
     (void) thread;