Skip to content

Commit 9c25397

Browse files
committed
Merge pull request #6081
7f386d2 DragonFlyBSD thread renaming. (sinetek)
2 parents 7abbb7e + 7f386d2 commit 9c25397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "config/bitcoin-config.h"
88
#endif
99

10-
#if (defined(__FreeBSD__) || defined(__OpenBSD__))
10+
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
1111
#include <pthread.h>
1212
#include <pthread_np.h>
1313
#endif
@@ -712,7 +712,7 @@ void RenameThread(const char* name)
712712
#if defined(PR_SET_NAME)
713713
// Only the first 15 characters are used (16 - NUL terminator)
714714
::prctl(PR_SET_NAME, name, 0, 0, 0);
715-
#elif (defined(__FreeBSD__) || defined(__OpenBSD__))
715+
#elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
716716
pthread_set_name_np(pthread_self(), name);
717717

718718
#elif defined(MAC_OSX)

0 commit comments

Comments
 (0)