llvm: lldb: no pthread_setname_np() on musl.
This commit is contained in:
parent
0ac59645b0
commit
932238485b
2 changed files with 13 additions and 1 deletions
|
@ -69,3 +69,15 @@
|
||||||
#endif
|
#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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue