2022-03-26 17:43:05 +01:00
|
|
|
diff '--color=auto' -uNr node-v17.8.0.orig/src/node_main.cc node-v17.8.0/src/node_main.cc
|
|
|
|
--- node-v17.8.0.orig/src/node_main.cc 2022-03-26 22:11:04.185459285 +0530
|
|
|
|
+++ node-v17.8.0/src/node_main.cc 2022-03-26 22:12:30.375459252 +0530
|
2021-09-10 07:38:48 +02:00
|
|
|
@@ -124,6 +124,10 @@
|
2016-07-23 21:48:29 +02:00
|
|
|
// calls elsewhere in the program (e.g., any logging from V8.)
|
|
|
|
setvbuf(stdout, nullptr, _IONBF, 0);
|
|
|
|
setvbuf(stderr, nullptr, _IONBF, 0);
|
2021-09-10 07:38:48 +02:00
|
|
|
+ if(getenv("TMPDIR") == NULL) {
|
2016-07-23 21:48:29 +02:00
|
|
|
+ // Give javascript programs (such as updated versions of npm) a working tmpdir.
|
2016-05-02 23:14:47 +02:00
|
|
|
+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
|
|
|
|
+ }
|
|
|
|
return node::Start(argc, argv);
|
|
|
|
}
|
|
|
|
#endif
|