diff options
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/src/unix/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/fs.c b/Utilities/cmlibuv/src/unix/fs.c index 6b41f88..40448f1 100644 --- a/Utilities/cmlibuv/src/unix/fs.c +++ b/Utilities/cmlibuv/src/unix/fs.c @@ -1040,11 +1040,12 @@ static ssize_t uv__fs_sendfile(uv_fs_t* req) { off = req->off; len = req->bufsml[0].len; - try_sendfile = 1; #ifdef __linux__ r = uv__fs_try_copy_file_range(in_fd, &off, out_fd, len); try_sendfile = (r == -1 && errno == ENOSYS); +#else + try_sendfile = 1; #endif if (try_sendfile) |