mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-14 05:40:52 +00:00
nodejs-lts: Add back a node LTS package
This commit is contained in:
29
packages/nodejs-lts/src-node_process.cc.patch
Normal file
29
packages/nodejs-lts/src-node_process.cc.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user