zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6bdea35ce543b1112bc48ccc30ae62f094d1aa2b (tree)
parent 6fc5923a545952ed66e74f1018b86d3294f5810d
Author: Lukas Lalinsky <lukas@lalinsky.com>
Date:   Fri, 14 Nov 2025 18:02:53 +0100

Fix std.c.MSF.SYNC for freebsd, openbsd, dragonfly

Diffstat:
Mlib/std/c.zig | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -1640,7 +1640,17 @@ pub const MSF = switch (native_os) { pub const DEACTIVATE = 0x8; pub const SYNC = 0x10; }, - .openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd => struct { + .freebsd, .dragonfly => struct { + pub const SYNC = 0; + pub const ASYNC = 1; + pub const INVALIDATE = 2; + }, + .openbsd => struct { + pub const ASYNC = 1; + pub const SYNC = 2; + pub const INVALIDATE = 4; + }, + .haiku, .netbsd, .illumos => struct { pub const ASYNC = 1; pub const INVALIDATE = 2; pub const SYNC = 4;