diff --git a/drivers/unix/thread_posix.cpp b/drivers/unix/thread_posix.cpp index ff340480020..8d4e72fe752 100644 --- a/drivers/unix/thread_posix.cpp +++ b/drivers/unix/thread_posix.cpp @@ -35,6 +35,10 @@ #include "core/os/thread.h" #include "core/ustring.h" +#ifdef PTHREAD_BSD_SET_NAME +#include +#endif + static Error set_name(const String &p_name) { #ifdef PTHREAD_NO_RENAME return ERR_UNAVAILABLE;