diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2020-05-27 00:57:51 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2020-05-27 01:08:14 -0500 |
commit | 8aa826ef31578d7d1738744c506d6996be92121a (patch) | |
tree | c10a7d518f86b9eba5cf7ba7f12599307a57af88 /data/nodejs/nodejs-mobile-filecopy.diff | |
parent | abdd9a04698a4a77058d83ed0dae59d3053618f7 (diff) |
Updates to NodeJS
Bugs
- dyld will refuse to load a dylib with a bad id path
- import patch from nodejs-mobile to fix a bad sys call error
Diffstat (limited to 'data/nodejs/nodejs-mobile-filecopy.diff')
-rw-r--r-- | data/nodejs/nodejs-mobile-filecopy.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/data/nodejs/nodejs-mobile-filecopy.diff b/data/nodejs/nodejs-mobile-filecopy.diff new file mode 100644 index 000000000..600d96c96 --- /dev/null +++ b/data/nodejs/nodejs-mobile-filecopy.diff @@ -0,0 +1,28 @@ +--- 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 @@ + } + + static ssize_t uv__fs_copyfile(uv_fs_t* req) { ++#if defined(__APPLE__) ++ /* On macOS, use the native copyfile(3). */ ++ copyfile_flags_t flags; ++ ++ flags = COPYFILE_ALL; ++ ++ if (req->flags & UV_FS_COPYFILE_EXCL) ++ flags |= COPYFILE_EXCL; ++ ++ return copyfile(req->path, req->new_path, NULL, flags); ++#else + uv_fs_t fs_req; + uv_file srcfd; + uv_file dstfd; +@@ -1258,6 +1269,7 @@ + + errno = UV__ERR(result); + return -1; ++#endif + } + + static void uv__to_stat(struct stat* src, uv_stat_t* dst) { |