diff options
Diffstat (limited to 'data/nodejs/nodejs-mobile-filecopy.diff')
-rw-r--r-- | data/nodejs/nodejs-mobile-filecopy.diff | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/data/nodejs/nodejs-mobile-filecopy.diff b/data/nodejs/nodejs-mobile-filecopy.diff index 600d96c96..f6b571850 100644 --- a/data/nodejs/nodejs-mobile-filecopy.diff +++ b/data/nodejs/nodejs-mobile-filecopy.diff @@ -1,10 +1,13 @@ ---- node-v12.17.0/deps/uv/src/unix/fs.c 2020-05-26 06:53:32.000000000 -0500 -+++ node-v12.17.0+iPhone/deps/uv/src/unix/fs.c 2020-05-27 00:54:19.883409601 -0500 -@@ -1102,6 +1102,17 @@ +diff -Naur node-v12.17.0/deps/uv/src/unix/fs.c node-v12.17.0+iPhone/deps/uv/src/unix/fs.c +--- node-v12.17.0/deps/uv/src/unix/fs.c 2020-05-26 04:53:32.000000000 -0700 ++++ node-v12.17.0+iPhone/deps/uv/src/unix/fs.c 2020-05-27 20:56:16.000000000 -0700 +@@ -1102,6 +1102,19 @@ } static ssize_t uv__fs_copyfile(uv_fs_t* req) { +#if defined(__APPLE__) ++#include <copyfile.h> ++ + /* On macOS, use the native copyfile(3). */ + copyfile_flags_t flags; + @@ -18,7 +21,7 @@ uv_fs_t fs_req; uv_file srcfd; uv_file dstfd; -@@ -1258,6 +1269,7 @@ +@@ -1258,6 +1271,7 @@ errno = UV__ERR(result); return -1; |