0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-11-01 03:18:55 +00:00
Files
termux-packages/x11-packages/qt6-qtbase/src-corelib-global-qlogging.cpp.patch.beforehostbuild
Biswapriyo Nath f50faa7146 fix(x11/qt6-qtbase): Disable pthread_getname_np call
That pthread API is available for API Level 26 and above.
2025-10-08 12:56:47 +05:30

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)