Skip to content

Commit

Permalink
Fix portability issue with pthreads
Browse files Browse the repository at this point in the history
This change resolves the following issue:
bitcoin/bitcoin#15951

Only tested on OpenBSD 6.5/amd64
  • Loading branch information
grim-trigger authored and dagurval committed Oct 28, 2020
1 parent 3de1fe8 commit 00c4784
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/threadnames.cpp
Expand Up @@ -9,6 +9,11 @@
#include <atomic>
#include <thread>

#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
#include <pthread.h>
#include <pthread_np.h>
#endif

#include <util/threadnames.h>

#ifdef HAVE_SYS_PRCTL_H
Expand Down

0 comments on commit 00c4784

Please sign in to comment.