termux-packages/packages/nodejs-lts/avoid-ficlone-ioctl.patch

20 lines
568 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/fs.c node-v16.14.2/deps/uv/src/unix/fs.c
--- node-v16.14.2.orig/deps/uv/src/unix/fs.c 2022-03-18 15:06:20.191091189 +0530
+++ node-v16.14.2/deps/uv/src/unix/fs.c 2022-03-18 15:07:35.021091161 +0530
@@ -1339,6 +1339,7 @@
2021-10-28 11:37:10 +02:00
#endif /* !__linux__ */
2020-01-16 02:01:11 +01:00
}
+#ifndef __ANDROID__
#ifdef FICLONE
if (req->flags & UV_FS_COPYFILE_FICLONE ||
req->flags & UV_FS_COPYFILE_FICLONE_FORCE) {
2022-03-18 10:40:36 +01:00
@@ -1359,6 +1360,7 @@
2020-01-16 02:01:11 +01:00
goto out;
}
#endif
+#endif
2021-10-28 11:37:10 +02:00
2020-01-16 02:01:11 +01:00
bytes_to_send = src_statsbuf.st_size;
in_offset = 0;