aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-30 22:32:41 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-30 22:32:41 -0800
commit3c1cb806d47042a6682a8331d185ef2ed3aa673e (patch)
tree75008c6346ce0b47528ca20198d12c4bd02ce2c6
parente5587c2b31594adfe0f97e7a4564b2c196abbe2a (diff)
downloadbun-3c1cb806d47042a6682a8331d185ef2ed3aa673e.tar.gz
bun-3c1cb806d47042a6682a8331d185ef2ed3aa673e.tar.zst
bun-3c1cb806d47042a6682a8331d185ef2ed3aa673e.zip
Update c.zig
-rw-r--r--src/c.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c.zig b/src/c.zig
index befc88fca..6529a234d 100644
--- a/src/c.zig
+++ b/src/c.zig
@@ -122,7 +122,7 @@ pub fn moveFileZSlowWithHandle(in_handle: std.os.fd_t, to_dir: std.os.fd_t, dest
defer std.os.close(out_handle);
if (comptime Enviroment.isLinux) {
_ = std.os.system.fallocate(out_handle, 0, 0, @intCast(i64, stat_.size));
- _ = try std.os.sendfile(out_handle, in_handle, 0, @intCast(usize, stat_.size), &[_]std.os.iovec_const{}, &[_]std.c.iovec_const{}, 0);
+ _ = try std.os.sendfile(out_handle, in_handle, 0, @intCast(usize, stat_.size), &[_]std.os.iovec_const{}, &[_]std.os.iovec_const{}, 0);
} else {
if (comptime Enviroment.isMac) {
// if this fails, it doesn't matter