2022-03-26 17:43:05 +01:00
|
|
|
diff '--color=auto' -uNr node-v17.8.0.orig/deps/uv/src/unix/sysinfo-memory.c node-v17.8.0/deps/uv/src/unix/sysinfo-memory.c
|
|
|
|
--- node-v17.8.0.orig/deps/uv/src/unix/sysinfo-memory.c 2022-03-26 22:11:02.595459286 +0530
|
|
|
|
+++ node-v17.8.0/deps/uv/src/unix/sysinfo-memory.c 2022-03-26 22:12:14.175459259 +0530
|
2019-05-28 14:42:17 +02:00
|
|
|
@@ -25,6 +25,7 @@
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <sys/sysinfo.h>
|
|
|
|
|
|
|
|
+#ifndef __ANDROID__
|
|
|
|
uint64_t uv_get_free_memory(void) {
|
|
|
|
struct sysinfo info;
|
|
|
|
|
2021-09-10 07:38:48 +02:00
|
|
|
@@ -32,6 +33,7 @@
|
|
|
|
return (uint64_t) info.freeram * info.mem_unit;
|
2019-05-28 14:42:17 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+#endif
|
2021-09-10 07:38:48 +02:00
|
|
|
|
|
|
|
uint64_t uv_get_total_memory(void) {
|
|
|
|
struct sysinfo info;
|