aports/communication/telegram-desktop/remove-glibc.patch

40 lines
1002 B
Diff
Raw Normal View History

2020-10-16 14:40:36 +00:00
diff --git a/Telegram/lib_base/base/platform/linux/base_info_linux.cpp b/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
2020-12-06 00:29:04 +00:00
index cff7136..ced69bd 100644
2020-10-16 14:40:36 +00:00
--- a/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
+++ b/Telegram/lib_base/base/platform/linux/base_info_linux.cpp
2020-12-06 00:29:04 +00:00
@@ -12,11 +12,6 @@
2020-10-16 14:40:36 +00:00
#include <QtCore/QDate>
#include <QtGui/QGuiApplication>
2020-12-06 00:29:04 +00:00
-// this file is used on both Linux & BSD
-#ifdef Q_OS_LINUX
-#include <gnu/libc-version.h>
-#endif // Q_OS_LINUX
-
2020-10-16 14:40:36 +00:00
namespace Platform {
namespace {
2020-12-06 00:29:04 +00:00
@@ -124,21 +119,13 @@ QString AutoUpdateKey() {
QString GetLibcName() {
#ifdef Q_OS_LINUX
- return "glibc";
+ return "musl";
#endif // Q_OS_LINUX
return QString();
2020-10-16 14:40:36 +00:00
}
2020-12-06 00:29:04 +00:00
QString GetLibcVersion() {
-#ifdef Q_OS_LINUX
2020-10-16 14:40:36 +00:00
- static const auto result = [&] {
- const auto version = QString::fromLatin1(gnu_get_libc_version());
- return QVersionNumber::fromString(version).isNull() ? QString() : version;
- }();
- return result;
2020-12-06 00:29:04 +00:00
-#endif // Q_OS_LINUX
2020-10-16 14:40:36 +00:00
-
2020-12-06 00:29:04 +00:00
return QString();
2020-10-16 14:40:36 +00:00
}
2020-12-06 00:29:04 +00:00