mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Define std.c.MADV for NetBSD
The `.netbsd` branch was completely missing. Validated against the actual system headers.
This commit is contained in:
parent
b38fb4bff3
commit
3a08d2f162
1 changed files with 9 additions and 0 deletions
|
|
@ -1599,6 +1599,15 @@ pub const MADV = switch (native_os) {
|
|||
pub const SEQUENTIAL = 0x5;
|
||||
pub const RANDOM = 0x6;
|
||||
},
|
||||
.netbsd => struct {
|
||||
pub const NORMAL = 0;
|
||||
pub const RANDOM = 1;
|
||||
pub const SEQUENTIAL = 2;
|
||||
pub const WILLNEED = 3;
|
||||
pub const DONTNEED = 4;
|
||||
pub const SPACEAVAIL = 5;
|
||||
pub const FREE = 6;
|
||||
},
|
||||
else => void,
|
||||
};
|
||||
pub const MCL = switch (native_os) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue