diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-21 20:00:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-21 20:00:45 -0700 |
| commit | 96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68 (patch) | |
| tree | c1b7478f66a390d50bcedb9577fbb93a54ecfff9 /lib/std/c.zig | |
| parent | b35c55e2373ace674cd1eec7f5086b805d1c8256 (diff) | |
| download | zig-96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68.tar.gz zig-96cbdd145d6ec5bf2e3ed80743c99ab4b2cdff68.zip | |
std.fs.File.Reader: fix sendFile logic
it wasn't accounting for both writer and reader buffering
Diffstat (limited to 'lib/std/c.zig')
| -rw-r--r-- | lib/std/c.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/c.zig b/lib/std/c.zig index 2880e3850a..74bc76d67f 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -10497,9 +10497,9 @@ pub const sysconf = switch (native_os) { pub const sf_hdtr = switch (native_os) { .freebsd, .macos, .ios, .tvos, .watchos, .visionos => extern struct { - headers: [*]const iovec_const, + headers: ?[*]const iovec_const, hdr_cnt: c_int, - trailers: [*]const iovec_const, + trailers: ?[*]const iovec_const, trl_cnt: c_int, }, else => void, |
