aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bitcoinrpc.h2
-rw-r--r--src/util.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h
index f70216392d..6a1857cb44 100644
--- a/src/bitcoinrpc.h
+++ b/src/bitcoinrpc.h
@@ -16,6 +16,8 @@ class CBlockIndex;
#include "json/json_spirit_writer_template.h"
#include "json/json_spirit_utils.h"
+#include "util.h"
+
json_spirit::Object JSONRPCError(int code, const std::string& message);
void ThreadRPCServer(void* parg);
diff --git a/src/util.cpp b/src/util.cpp
index 69cc5f3424..d6d9a368f0 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;