mirror of
https://github.com/termux/termux-packages.git
synced 2025-11-01 03:18:55 +00:00
19 lines
555 B
Diff
19 lines
555 B
Diff
--- a/src/corelib/global/qlogging.cpp
|
|
+++ b/src/corelib/global/qlogging.cpp
|
|
@@ -206,6 +206,7 @@
|
|
#if defined(Q_OS_LINUX) || defined(Q_OS_DARWIN) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
|
|
static bool qt_append_thread_name_to(QString &message)
|
|
{
|
|
+#ifndef __ANDROID__
|
|
std::array<char, 16> name{};
|
|
if (pthread_getname_np(pthread_self(), name.data(), name.size()) == 0) {
|
|
QUtf8StringView threadName(name.data());
|
|
@@ -214,6 +215,7 @@
|
|
return true;
|
|
}
|
|
}
|
|
+#endif
|
|
return false;
|
|
}
|
|
#elif defined(Q_OS_WIN)
|