14 changed files with 54 additions and 21 deletions
@ -0,0 +1,21 @@ |
|||
diff -u -r ../node-v8.12.0/src/node_internals.h ./src/node_internals.h
|
|||
--- ../node-v8.12.0/src/node_internals.h 2018-09-10 18:47:03.000000000 +0000
|
|||
+++ ./src/node_internals.h 2018-09-18 03:11:24.361303054 +0000
|
|||
@@ -433,7 +433,7 @@
|
|||
void Umask(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
void Uptime(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
|
|||
-#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__)
|
|||
+#if defined(__POSIX__) && !defined(__CloudABI__)
|
|||
void SetGid(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
void SetEGid(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
void SetUid(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
@@ -445,7 +445,7 @@
|
|||
void GetEUid(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
void GetEGid(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
void GetGroups(const v8::FunctionCallbackInfo<v8::Value>& args); |
|||
-#endif // __POSIX__ && !defined(__ANDROID__) && !defined(__CloudABI__)
|
|||
+#endif // __POSIX__ && !defined(__CloudABI__)
|
|||
|
|||
} // namespace node |
|||
|
@ -0,0 +1,29 @@ |
|||
diff -u -r ../node-v8.12.0/src/node_process.cc ./src/node_process.cc
|
|||
--- ../node-v8.12.0/src/node_process.cc 2018-09-10 18:47:03.000000000 +0000
|
|||
+++ ./src/node_process.cc 2018-09-18 02:59:20.057281174 +0000
|
|||
@@ -22,7 +22,7 @@
|
|||
#include <unistd.h> // setuid, getuid |
|||
#endif |
|||
|
|||
-#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__)
|
|||
+#if defined(__POSIX__) && !defined(__CloudABI__)
|
|||
#include <pwd.h> // getpwnam() |
|||
#include <grp.h> // getgrnam() |
|||
#endif |
|||
@@ -236,7 +236,7 @@
|
|||
} |
|||
|
|||
|
|||
-#if defined(__POSIX__) && !defined(__ANDROID__)
|
|||
+#if defined(__POSIX__)
|
|||
|
|||
static const uid_t uid_not_found = static_cast<uid_t>(-1); |
|||
static const gid_t gid_not_found = static_cast<gid_t>(-1); |
|||
@@ -555,6 +555,6 @@
|
|||
} |
|||
} |
|||
|
|||
-#endif // __POSIX__ && !defined(__ANDROID__)
|
|||
+#endif // __POSIX__
|
|||
|
|||
} // namespace node |
Loading…
Reference in new issue