aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorNameless <truemedian@gmail.com>2024-04-26 12:57:03 -0500
committerAndrew Kelley <andrew@ziglang.org>2024-04-28 00:20:30 -0700
commitaecd9cc6d152443dc7c02dfe373be654d8adae64 (patch)
tree6789f01a30b6a86720cb4914079376538fd365c5 /src/Compilation.zig
parentc231d94960ec2cecbea0de877f645ba5d439fd13 (diff)
downloadzig-aecd9cc6d152443dc7c02dfe373be654d8adae64.tar.gz
zig-aecd9cc6d152443dc7c02dfe373be654d8adae64.zip
std.posix.iovec: use .base and .len instead of .iov_base and .iov_len
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 3532a9d5b5..0a6c0e2e4d 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2811,8 +2811,8 @@ fn addBuf(bufs_list: []std.posix.iovec_const, bufs_len: *usize, buf: []const u8)
const i = bufs_len.*;
bufs_len.* = i + 1;
bufs_list[i] = .{
- .iov_base = buf.ptr,
- .iov_len = buf.len,
+ .base = buf.ptr,
+ .len = buf.len,
};
}
@@ -3800,8 +3800,8 @@ fn docsCopyModule(comp: *Compilation, module: *Package.Module, name: []const u8,
};
var header_and_trailer: [2]std.posix.iovec_const = .{
- .{ .iov_base = header_bytes.ptr, .iov_len = header_bytes.len },
- .{ .iov_base = padding.ptr, .iov_len = padding.len },
+ .{ .base = header_bytes.ptr, .len = header_bytes.len },
+ .{ .base = padding.ptr, .len = padding.len },
};
try tar_file.writeFileAll(file, .{