llvm: lldb: no pthread_setname_np() on musl.
This commit is contained in:
@@ -69,3 +69,15 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
--- source/Host/linux/HostThreadLinux.cpp.orig 2015-05-07 12:09:24.855925281 +0200
|
||||
+++ source/Host/linux/HostThreadLinux.cpp 2015-05-07 12:12:10.495735534 +0200
|
||||
@@ -30,7 +30,9 @@ HostThreadLinux::HostThreadLinux(lldb::t
|
||||
void
|
||||
HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name)
|
||||
{
|
||||
+#if defined(__ANDROID__) || defined(__GLIBC__)
|
||||
::pthread_setname_np(thread, name.data());
|
||||
+#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user