diff options
Diffstat (limited to 'lldb/source/Host/linux/HostThreadLinux.cpp')
-rw-r--r-- | lldb/source/Host/linux/HostThreadLinux.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Host/linux/HostThreadLinux.cpp b/lldb/source/Host/linux/HostThreadLinux.cpp index 81512154cd5..2312ced0107 100644 --- a/lldb/source/Host/linux/HostThreadLinux.cpp +++ b/lldb/source/Host/linux/HostThreadLinux.cpp @@ -30,7 +30,12 @@ HostThreadLinux::HostThreadLinux(lldb::thread_t thread) void HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name) { +#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__) ::pthread_setname_np(thread, name.data()); +#else + (void) thread; + (void) name; +#endif } void |