diff --git a/libc/src/pthread/pthread_exit.cpp b/libc/src/pthread/pthread_exit.cpp --- a/libc/src/pthread/pthread_exit.cpp +++ b/libc/src/pthread/pthread_exit.cpp @@ -19,7 +19,7 @@ "Mismatch between pthread_t and internal Thread."); LLVM_LIBC_FUNCTION(void, pthread_exit, (void *retval)) { - thread_exit(ThreadReturnValue(retval), ThreadStyle::POSIX); + __llvm_libc::thread_exit(ThreadReturnValue(retval), ThreadStyle::POSIX); } } // namespace __llvm_libc