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

20 lines
564 B
Diff
Raw Normal View History

2022-03-26 17:43:05 +01:00
diff '--color=auto' -uNr node-v17.8.0.orig/deps/uv/src/unix/fs.c node-v17.8.0/deps/uv/src/unix/fs.c
--- node-v17.8.0.orig/deps/uv/src/unix/fs.c 2022-03-26 22:11:02.595459286 +0530
+++ node-v17.8.0/deps/uv/src/unix/fs.c 2022-03-26 22:11:44.455459270 +0530
2022-03-11 16:03:32 +01:00
@@ -1339,6 +1339,7 @@
#endif /* !__linux__ */
}
+#ifndef __ANDROID__
#ifdef FICLONE
if (req->flags & UV_FS_COPYFILE_FICLONE ||
req->flags & UV_FS_COPYFILE_FICLONE_FORCE) {
2022-03-11 16:03:32 +01:00
@@ -1359,6 +1360,7 @@
goto out;
}
#endif
+#endif
bytes_to_send = src_statsbuf.st_size;
in_offset = 0;