aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2012-08-21 11:59:24 -0400
committerGavin Andresen <[email protected]>2012-08-21 12:00:05 -0400
commitcd58f05894bb79ce09eb016d1fcd8ccbdb265f34 (patch)
treef05618ea5f45ff2634187fb1e12cbb4429fc4f05 /src/util.cpp
parentFix 32-bit build error: include util.h to get int64 typedef (diff)
downloaddiscoin-cd58f05894bb79ce09eb016d1fcd8ccbdb265f34.tar.xz
discoin-cd58f05894bb79ce09eb016d1fcd8ccbdb265f34.zip
Restore OSX 10.5 compatibility (do not use pthread_setname_np)
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 69cc5f342..d6d9a368f 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1287,8 +1287,11 @@ 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);
+
+// This is XCode 10.6-and-later; bring back if we drop 10.5 support:
+// #elif defined(MAC_OSX)
+// pthread_setname_np(name);
+
#else
// Prevent warnings for unused parameters...
(void)name;