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

This commit is contained in:
Lukas Lalinsky 2025-11-14 18:02:53 +01:00
parent 6fc5923a54
commit 6bdea35ce5

View file

@ -1640,7 +1640,17 @@ pub const MSF = switch (native_os) {
pub const DEACTIVATE = 0x8; pub const DEACTIVATE = 0x8;
pub const SYNC = 0x10; 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 ASYNC = 1;
pub const INVALIDATE = 2; pub const INVALIDATE = 2;
pub const SYNC = 4; pub const SYNC = 4;