Merge pull request #6081

7f386d2 DragonFlyBSD thread renaming. (sinetek)
This commit is contained in:
Wladimir J. van der Laan 2015-04-29 19:05:00 +02:00
commit 9c25397619
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

@ -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)