diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-04-29 19:05:00 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-04-29 19:08:33 +0200 |
commit | 9c25397619339c90b018f98bbc081c14186d7623 (patch) | |
tree | 040b32f2db6799dd5244b566f72295ab28e68da0 /src | |
parent | 7abbb7ec7ae0e77a2a67ef8db088053eb72c6734 (diff) | |
parent | 7f386d2ff2914457a36ce6b349468e0011378173 (diff) |
Merge pull request #6081
7f386d2 DragonFlyBSD thread renaming. (sinetek)
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 1bb7df7085..dfba506f24 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7,7 +7,7 @@ #include "config/bitcoin-config.h" #endif -#if (defined(__FreeBSD__) || defined(__OpenBSD__)) +#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) #include <pthread.h> #include <pthread_np.h> #endif @@ -712,7 +712,7 @@ void RenameThread(const char* name) #if defined(PR_SET_NAME) // Only the first 15 characters are used (16 - NUL terminator) ::prctl(PR_SET_NAME, name, 0, 0, 0); -#elif (defined(__FreeBSD__) || defined(__OpenBSD__)) +#elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) pthread_set_name_np(pthread_self(), name); #elif defined(MAC_OSX) |