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

21 lines
504 B
Diff
Raw Normal View History

2021-10-28 11:37:10 +02:00
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__ */
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) {
2021-10-28 11:37:10 +02:00
@@ -1267,6 +1268,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;