0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/x11-packages/thunderbird/0016-protobuf-no-android-log.patch
2024-01-22 15:23:39 +08:00

21 lines
670 B
Diff

--- a/toolkit/components/protobuf/src/google/protobuf/stubs/common.cc
+++ b/toolkit/components/protobuf/src/google/protobuf/stubs/common.cc
@@ -45,7 +45,7 @@
#include <windows.h>
#define snprintf _snprintf // see comment in strutil.cc
#endif
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) && !defined(__TERMUX__)
#include <android/log.h>
#endif
@@ -121,7 +121,7 @@
namespace internal {
-#if defined(__ANDROID__)
+#if defined(__ANDROID__) && !defined(__TERMUX__)
inline void DefaultLogHandler(LogLevel level, const char* filename, int line,
const std::string& message) {
if (level < GOOGLE_PROTOBUF_MIN_LOG_LEVEL) {