Fredrik Fornwall
6 years ago
3 changed files with 18 additions and 22 deletions
@ -1,20 +0,0 @@ |
|||
--- ../linux-syscalls.c.orig 2019-04-01 12:59:57.770124746 +0000
|
|||
+++ ./deps/uv/src/unix/linux-syscalls.c 2019-04-01 13:00:38.703457159 +0000
|
|||
@@ -187,7 +187,7 @@
|
|||
# endif |
|||
#endif /* __NR_pwritev */ |
|||
|
|||
-#ifndef __NR_statx
|
|||
+#if !defined(__NR_statx) && !defined(__ANDROID__)
|
|||
# if defined(__x86_64__) |
|||
# define __NR_statx 332 |
|||
# elif defined(__i386__) |
|||
@@ -358,7 +358,7 @@
|
|||
int flags, |
|||
unsigned int mask, |
|||
struct uv__statx* statxbuf) { |
|||
-#if defined(__NR_statx)
|
|||
+#if defined(__NR_statx) && !defined(__ANDROID__)
|
|||
return syscall(__NR_statx, dirfd, path, flags, mask, statxbuf); |
|||
#else |
|||
return errno = ENOSYS, -1; |
@ -0,0 +1,16 @@ |
|||
diff -uNr node-v12.3.1/deps/uv/src/unix/sysinfo-memory.c node-v12.3.1.mod/deps/uv/src/unix/sysinfo-memory.c
|
|||
--- node-v12.3.1/deps/uv/src/unix/sysinfo-memory.c 2019-05-22 15:21:52.000000000 +0300
|
|||
+++ node-v12.3.1.mod/deps/uv/src/unix/sysinfo-memory.c 2019-05-28 15:37:28.698418026 +0300
|
|||
@@ -25,6 +25,7 @@
|
|||
#include <stdint.h> |
|||
#include <sys/sysinfo.h> |
|||
|
|||
+#ifndef __ANDROID__
|
|||
uint64_t uv_get_free_memory(void) { |
|||
struct sysinfo info; |
|||
|
|||
@@ -40,3 +41,4 @@
|
|||
return (uint64_t) info.totalram * info.mem_unit; |
|||
return 0; |
|||
} |
|||
+#endif
|
Loading…
Reference in new issue