1- From 6e6b47d5ab381c3df3b30bb0b0a6cf210dfb1eba Mon Sep 17 00:00:00 2001
2- From: Cory Fields <cory-nospam-@coryfields .com>
3- Date: Mon, 5 Mar 2018 14:22:05 -0500
1+ From c9bbdd6581d07acfe8971e4bcebe278a3676cf03 Mon Sep 17 00:00:00 2001
2+ From: mruddy <6440430+mruddy@users.noreply.github .com>
3+ Date: Sat, 30 Jun 2018 09:57:18 -0400
44Subject: [PATCH] disable pthread_set_name_np
55
66pthread_set_name_np adds a Glibc requirement on >= 2.12.
@@ -9,27 +9,27 @@ pthread_set_name_np adds a Glibc requirement on >= 2.12.
99 1 file changed, 3 insertions(+), 1 deletion(-)
1010
1111diff --git a/src/thread.cpp b/src/thread.cpp
12- index 4fc59c3e..c3fdfd46 100644
12+ index a1086b0c..9943f354 100644
1313--- a/src/thread.cpp
1414+++ b/src/thread.cpp
15- @@ -220 ,7 +220 ,7 @@ void zmq::thread_t::setThreadName(const char *name_)
15+ @@ -307 ,7 +307 ,7 @@ void zmq::thread_t::setThreadName (const char *name_)
1616 */
1717 if (!name_)
1818 return;
1919-
2020+ #if 0
2121 #if defined(ZMQ_HAVE_PTHREAD_SETNAME_1)
22- int rc = pthread_setname_np(name_);
23- if(rc) return;
24- @@ -233 ,6 +233 ,8 @@ void zmq::thread_t::setThreadName(const char *name_)
22+ int rc = pthread_setname_np (name_);
23+ if (rc)
24+ @@ -323 ,6 +323 ,8 @@ void zmq::thread_t::setThreadName (const char *name_)
2525 #elif defined(ZMQ_HAVE_PTHREAD_SET_NAME)
26- pthread_set_name_np(descriptor, name_);
26+ pthread_set_name_np (descriptor, name_);
2727 #endif
2828+ #endif
2929+ return;
3030 }
3131
3232 #endif
3333- -
34- 2.11 .1
34+ 2.17 .1
3535
0 commit comments