Fredrik Fornwall
9 years ago
3 changed files with 30 additions and 26 deletions
@ -1,21 +1,14 @@ |
|||||
diff -u -r ../node-v6.0.0/src/node_main.cc ./src/node_main.cc
|
diff -u -r ../node-v6.3.1/src/node_main.cc ./src/node_main.cc
|
||||
--- ../node-v6.0.0/src/node_main.cc 2016-04-26 15:50:22.000000000 -0400
|
--- ../node-v6.3.1/src/node_main.cc 2016-07-21 16:44:43.000000000 -0400
|
||||
+++ ./src/node_main.cc 2016-05-02 16:29:08.313594254 -0400
|
+++ ./src/node_main.cc 2016-07-23 13:53:57.530095071 -0400
|
||||
@@ -1,4 +1,5 @@
|
@@ -54,6 +54,10 @@
|
||||
#include "node.h" |
// calls elsewhere in the program (e.g., any logging from V8.) |
||||
+#include <stdlib.h>
|
setvbuf(stdout, nullptr, _IONBF, 0); |
||||
|
setvbuf(stderr, nullptr, _IONBF, 0); |
||||
#ifdef _WIN32 |
|
||||
#include <VersionHelpers.h> |
|
||||
@@ -50,6 +51,11 @@
|
|
||||
// UNIX |
|
||||
int main(int argc, char *argv[]) { |
|
||||
setvbuf(stderr, NULL, _IOLBF, 1024); |
|
||||
+ if (getenv("TMPDIR") == NULL) {
|
+ if (getenv("TMPDIR") == NULL) {
|
||||
+ /* Give javascript programs (such as updated versions of npm) a working tmpdir. */
|
+ // Give javascript programs (such as updated versions of npm) a working tmpdir.
|
||||
+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
|
+ putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
|
||||
+ }
|
+ }
|
||||
+
|
|
||||
return node::Start(argc, argv); |
return node::Start(argc, argv); |
||||
} |
} |
||||
#endif |
#endif |
||||
|
Loading…
Reference in new issue