Skip to content

Commit 6bdea35

Browse files
committed
Fix std.c.MSF.SYNC for freebsd, openbsd, dragonfly
1 parent 6fc5923 commit 6bdea35

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/std/c.zig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,17 @@ pub const MSF = switch (native_os) {
16401640
pub const DEACTIVATE = 0x8;
16411641
pub const SYNC = 0x10;
16421642
},
1643-
.openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd => struct {
1643+
.freebsd, .dragonfly => struct {
1644+
pub const SYNC = 0;
1645+
pub const ASYNC = 1;
1646+
pub const INVALIDATE = 2;
1647+
},
1648+
.openbsd => struct {
1649+
pub const ASYNC = 1;
1650+
pub const SYNC = 2;
1651+
pub const INVALIDATE = 4;
1652+
},
1653+
.haiku, .netbsd, .illumos => struct {
16441654
pub const ASYNC = 1;
16451655
pub const INVALIDATE = 2;
16461656
pub const SYNC = 4;

0 commit comments

Comments
 (0)