This revision was automatically updated to reflect the committed changes.
Closed by commit rL248280: Do not use pthread_setname_np() if we don't have 
GLIBC or Android. (authored by vkalintiris).

Changed prior to commit:
  http://reviews.llvm.org/D13019?vs=35357&id=35374#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13019

Files:
  lldb/trunk/source/Host/linux/HostThreadLinux.cpp

Index: lldb/trunk/source/Host/linux/HostThreadLinux.cpp
===================================================================
--- lldb/trunk/source/Host/linux/HostThreadLinux.cpp
+++ lldb/trunk/source/Host/linux/HostThreadLinux.cpp
@@ -30,7 +30,12 @@
 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


Index: lldb/trunk/source/Host/linux/HostThreadLinux.cpp
===================================================================
--- lldb/trunk/source/Host/linux/HostThreadLinux.cpp
+++ lldb/trunk/source/Host/linux/HostThreadLinux.cpp
@@ -30,7 +30,12 @@
 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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to