termux-packages/packages/nodejs-lts/fix_multiple_definitions.patch

20 lines
617 B
Diff
Raw Normal View History

2022-03-18 10:40:36 +01:00
diff '--color=auto' -uNr node-v16.14.2.orig/deps/uv/src/unix/sysinfo-memory.c node-v16.14.2/deps/uv/src/unix/sysinfo-memory.c
--- node-v16.14.2.orig/deps/uv/src/unix/sysinfo-memory.c 2022-03-18 15:06:20.201091189 +0530
+++ node-v16.14.2/deps/uv/src/unix/sysinfo-memory.c 2022-03-18 15:08:41.551091135 +0530
@@ -25,6 +25,7 @@
#include <stdint.h>
#include <sys/sysinfo.h>
+#ifndef __ANDROID__
uint64_t uv_get_free_memory(void) {
struct sysinfo info;
2021-10-28 11:37:10 +02:00
@@ -32,6 +33,7 @@
return (uint64_t) info.freeram * info.mem_unit;
return 0;
}
+#endif
2021-10-28 11:37:10 +02:00
uint64_t uv_get_total_memory(void) {
struct sysinfo info;