aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-07-16 20:57:26 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-07-16 20:57:26 -0400
commit92f6fb4cfa8ac18023072a6e76f51b9f1a249f96 (patch)
treeaeacb3265aa9fe02f78f1fa8a1569c68d7073fd9 /src
parent36fe96581f343aaae91e34b59c223c8e156f14e3 (diff)
Teach RenameThread to work on OSX
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index a4a71a127e..963d58cd8b 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1287,6 +1287,8 @@ void RenameThread(const char* name)
// on FreeBSD or OpenBSD first. When verified the '0 &&' part can be
// removed.
pthread_set_name_np(pthread_self(), name);
+#elif defined(MAC_OSX)
+ pthread_setname_np(name);
#else
// Prevent warnings for unused parameters...
(void)name;