From 1b05dff080fe50937a02cfde661db58ace21c553 Mon Sep 17 00:00:00 2001 From: grim-trigger <36375872+grim-trigger@users.noreply.github.com> Date: Tue, 7 May 2019 00:17:33 +0000 Subject: [PATCH] Fix portability issue with pthreads This change resolves the following issue: https://github.com/bitcoin/bitcoin/issues/15951 Only tested on OpenBSD 6.5/amd64 --- src/util/threadnames.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/threadnames.cpp b/src/util/threadnames.cpp index 7b0d744aeca..b221b0c975a 100644 --- a/src/util/threadnames.cpp +++ b/src/util/threadnames.cpp @@ -9,6 +9,11 @@ #include #include +#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) +#include +#include +#endif + #include #ifdef HAVE_SYS_PRCTL_H