termux-packages/packages/nodejs-lts/src-debug_utils.cc.patch

13 lines
531 B
Diff
Raw Normal View History

2022-03-18 10:40:36 +01:00
diff '--color=auto' -uNr node-v16.14.2.orig/src/debug_utils.cc node-v16.14.2/src/debug_utils.cc
--- node-v16.14.2.orig/src/debug_utils.cc 2022-03-18 15:06:23.901091188 +0530
+++ node-v16.14.2/src/debug_utils.cc 2022-03-18 15:08:50.991091132 +0530
2021-10-28 11:37:10 +02:00
@@ -500,7 +500,7 @@
WriteConsoleW(handle, wbuf.data(), n, nullptr, nullptr);
return;
-#elif defined(__ANDROID__)
+#elif defined(__ANDROID__) && !defined(__TERMUX__)
if (file == stderr) {
__android_log_print(ANDROID_LOG_ERROR, "nodejs", "%s", str.data());
return;