1From c9bbdd6581d07acfe8971e4bcebe278a3676cf03 Mon Sep 17 00:00:00 2001 2From: mruddy <6440430+mruddy@users.noreply.github.com> 3Date: Sat, 30 Jun 2018 09:57:18 -0400 4Subject: [PATCH] disable pthread_set_name_np 5 6pthread_set_name_np adds a Glibc requirement on >= 2.12. 7--- 8 src/thread.cpp | 4 +++- 9 1 file changed, 3 insertions(+), 1 deletion(-) 10 11diff --git a/src/thread.cpp b/src/thread.cpp 12index a1086b0c..9943f354 100644 13--- a/src/thread.cpp 14+++ b/src/thread.cpp 15@@ -307,7 +307,7 @@ void zmq::thread_t::setThreadName (const char *name_) 16 */ 17 if (!name_) 18 return; 19- 20+#if 0 21 #if defined(ZMQ_HAVE_PTHREAD_SETNAME_1) 22 int rc = pthread_setname_np (name_); 23 if (rc) 24@@ -323,6 +323,8 @@ void zmq::thread_t::setThreadName (const char *name_) 25 #elif defined(ZMQ_HAVE_PTHREAD_SET_NAME) 26 pthread_set_name_np (descriptor, name_); 27 #endif 28+#endif 29+ return; 30 } 31 32 #endif 33-- 342.17.1 35 36