X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/6c7357c15404f938116c84817dfb1c7db316bf26..a3bc74c9eab15d758ef1ecb4ab21bb9f13c73632:/disabled-packages/nodejs-current/src-node.cc.patch diff --git a/disabled-packages/nodejs-current/src-node.cc.patch b/disabled-packages/nodejs-current/src-node.cc.patch deleted file mode 100644 index d748ef84..00000000 --- a/disabled-packages/nodejs-current/src-node.cc.patch +++ /dev/null @@ -1,52 +0,0 @@ -Without this patch functions such as process.getgroups -are not built on Android, which breaks things such as -npm/node_modules/which/which.js. - -diff -u -r ../node-v4.0.0/src/node.cc ./src/node.cc ---- ../node-v4.0.0/src/node.cc 2015-09-08 11:30:45.000000000 -0400 -+++ ./src/node.cc 2015-09-08 19:06:39.415724588 -0400 -@@ -69,7 +69,7 @@ - #include // setuid, getuid - #endif - --#if defined(__POSIX__) && !defined(__ANDROID__) -+#if defined(__POSIX__) - #include // getpwnam() - #include // getgrnam() - #endif -@@ -1590,7 +1590,7 @@ - } - - --#if defined(__POSIX__) && !defined(__ANDROID__) -+#if defined(__POSIX__) - - static const uid_t uid_not_found = static_cast(-1); - static const gid_t gid_not_found = static_cast(-1); -@@ -1910,7 +1910,7 @@ - } - } - --#endif // __POSIX__ && !defined(__ANDROID__) -+#endif // __POSIX__ - - - void Exit(const FunctionCallbackInfo& args) { -@@ -2866,7 +2866,7 @@ - - env->SetMethod(process, "umask", Umask); - --#if defined(__POSIX__) && !defined(__ANDROID__) -+#if defined(__POSIX__) - env->SetMethod(process, "getuid", GetUid); - env->SetMethod(process, "geteuid", GetEUid); - env->SetMethod(process, "setuid", SetUid); -@@ -2880,7 +2880,7 @@ - env->SetMethod(process, "getgroups", GetGroups); - env->SetMethod(process, "setgroups", SetGroups); - env->SetMethod(process, "initgroups", InitGroups); --#endif // __POSIX__ && !defined(__ANDROID__) -+#endif // __POSIX__ - - env->SetMethod(process, "_kill", Kill); -