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