summaryrefslogtreecommitdiff
path: root/drivers/unix/thread_posix.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-15 07:13:54 +0100
committerGitHub <noreply@github.com>2021-03-15 07:13:54 +0100
commita4fd6d374c6a58247ba3d13855e8348fc0c76f3b (patch)
tree8fd69b82a44ac97136ffeff2b64644fb6d5ddfb8 /drivers/unix/thread_posix.cpp
parentb060ca680a640904af7fd25b5aaa9f30f1182319 (diff)
parent7a64819c2fa839eb6ce198285fdc2dc65493d062 (diff)
Merge pull request #47010 from akien-mga/modernized_thread_fix_freebsd
Thread: Re-add pthread_np.h include for FreeBSD/OpenBSD
Diffstat (limited to 'drivers/unix/thread_posix.cpp')
-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;