Merge pull request #47010 from akien-mga/modernized_thread_fix_freebsd

Thread: Re-add pthread_np.h include for FreeBSD/OpenBSD
This commit is contained in:
Rémi Verschelde 2021-03-15 07:13:54 +01:00 committed by GitHub
commit a4fd6d374c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;