termux-packages/packages/nodejs/src-debug_utils.cc.patch
2022-03-27 04:35:40 +00:00

13 lines
527 B
Diff

diff '--color=auto' -uNr node-v17.8.0.orig/src/debug_utils.cc node-v17.8.0/src/debug_utils.cc
--- node-v17.8.0.orig/src/debug_utils.cc 2022-03-26 22:11:04.165459285 +0530
+++ node-v17.8.0/src/debug_utils.cc 2022-03-26 22:12:24.985459255 +0530
@@ -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;