termux-packages/packages/nodejs-lts/src-node_process.cc.patch

30 lines
819 B
Diff

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