diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index 5f05a27542..74d1f0304a 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -880,7 +880,7 @@ void Thread::setCurrentThreadName (const String& name) [[NSThread currentThread] setName: juceStringToNS (name)]; } #elif JUCE_LINUX - prctl (PR_SET_NAME, name.toRawUTF8(), 0, 0, 0); + pthread_setname_np (pthread_self(), name.toRawUTF8()); #endif }