summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-03-14 22:42:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-03-14 22:42:48 +0100
commit7a64819c2fa839eb6ce198285fdc2dc65493d062 (patch)
tree8fd69b82a44ac97136ffeff2b64644fb6d5ddfb8 /drivers
parentb060ca680a640904af7fd25b5aaa9f30f1182319 (diff)
Thread: Re-add pthread_np.h include for FreeBSD/OpenBSD
Was a regression from #45315. Fixes #46998.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/thread_posix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/unix/thread_posix.cpp b/drivers/unix/thread_posix.cpp
index 19fab1d475..e47046e3ae 100644
--- a/drivers/unix/thread_posix.cpp
+++ b/drivers/unix/thread_posix.cpp
@@ -35,6 +35,10 @@
#include "core/os/thread.h"
#include "core/string/ustring.h"
+#ifdef PTHREAD_BSD_SET_NAME
+#include <pthread_np.h>
+#endif
+
static Error set_name(const String &p_name) {
#ifdef PTHREAD_NO_RENAME
return ERR_UNAVAILABLE;