termux-packages/packages/nodejs/fix_multiple_definitions.patch
2022-03-12 07:59:50 +00:00

20 lines
613 B
Diff

diff '--color=auto' -uNr node-v17.7.1.orig/deps/uv/src/unix/sysinfo-memory.c node-v17.7.1/deps/uv/src/unix/sysinfo-memory.c
--- node-v17.7.1.orig/deps/uv/src/unix/sysinfo-memory.c 2022-03-11 20:20:41.477755317 +0530
+++ node-v17.7.1/deps/uv/src/unix/sysinfo-memory.c 2022-03-11 20:23:56.617755243 +0530
@@ -25,6 +25,7 @@
#include <stdint.h>
#include <sys/sysinfo.h>
+#ifndef __ANDROID__
uint64_t uv_get_free_memory(void) {
struct sysinfo info;
@@ -32,6 +33,7 @@
return (uint64_t) info.freeram * info.mem_unit;
return 0;
}
+#endif
uint64_t uv_get_total_memory(void) {
struct sysinfo info;