0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-15 08:13:17 +00:00
Files
termux-packages/x11-packages/telegram-desktop/0006-libtd-no-android.patch
2025-05-12 09:58:21 +08:00

21 lines
578 B
Diff

--- a/libtd/tdutils/td/utils/logging.cpp
+++ b/libtd/tdutils/td/utils/logging.cpp
@@ -17,7 +17,7 @@
#include <limits>
#include <mutex>
-#if TD_ANDROID
+#if TD_ANDROID && !defined(__TERMUX__)
#include <android/log.h>
#define ALOG_TAG "DLTD"
#elif TD_TIZEN
@@ -152,7 +152,7 @@
class DefaultLog final : public LogInterface {
void do_append(int log_level, CSlice slice) final {
-#if TD_ANDROID
+#if TD_ANDROID && !defined(__TERMUX__)
switch (log_level) {
case VERBOSITY_NAME(FATAL):
__android_log_write(ANDROID_LOG_FATAL, ALOG_TAG, slice.c_str());