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

21 lines
504 B
Diff

diff -uNr ./deps/uv/src/unix/fs.c ./deps/uv/src/unix/fs.c.mod
--- ./deps/uv/src/unix/fs.c 2021-06-03 07:15:30.000000000 +0530
+++ ./deps/uv/src/unix/fs.c.mod 2021-06-18 20:05:49.675642773 +0530
@@ -1247,6 +1247,7 @@
#endif /* !__linux__ */
}
+#ifndef __ANDROID__
#ifdef FICLONE
if (req->flags & UV_FS_COPYFILE_FICLONE ||
req->flags & UV_FS_COPYFILE_FICLONE_FORCE) {
@@ -1267,6 +1268,7 @@
goto out;
}
#endif
+#endif
bytes_to_send = src_statsbuf.st_size;
in_offset = 0;