2018-12-28 10:58:26 +01:00
|
|
|
diff -u -r ../node-v10.9.0/src/node_process.cc ./src/node_process.cc
|
|
|
|
--- ../node-v10.9.0/src/node_process.cc 2018-08-15 13:53:35.000000000 +0000
|
|
|
|
+++ ./src/node_process.cc 2018-08-23 23:40:53.046488108 +0000
|
|
|
|
@@ -20,7 +20,7 @@
|
2018-09-20 02:19:41 +02:00
|
|
|
#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
|
2018-12-28 10:58:26 +01:00
|
|
|
@@ -247,7 +247,7 @@
|
2018-09-20 02:19:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-12-28 10:58:26 +01:00
|
|
|
-#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__)
|
|
|
|
+#if defined(__POSIX__) && !defined(__CloudABI__)
|
2018-09-20 02:19:41 +02:00
|
|
|
|
|
|
|
static const uid_t uid_not_found = static_cast<uid_t>(-1);
|
|
|
|
static const gid_t gid_not_found = static_cast<gid_t>(-1);
|
2018-12-28 10:58:26 +01:00
|
|
|
@@ -546,6 +546,6 @@
|
|
|
|
return env->ThrowErrnoException(errno, "initgroups");
|
2018-09-20 02:19:41 +02:00
|
|
|
}
|
|
|
|
|
2018-12-28 10:58:26 +01:00
|
|
|
-#endif // __POSIX__ && !defined(__ANDROID__) && !defined(__CloudABI__)
|
|
|
|
+#endif // __POSIX__ && !defined(__CloudABI__)
|
2018-09-20 02:19:41 +02:00
|
|
|
|
|
|
|
} // namespace node
|