authorgravatar for lukas@lalinsky.comLukas Lalinsky <lukas@lalinsky.com> 2025-11-14 17:48:19+01:00
committergravatar for lukas@lalinsky.comLukas Lalinsky <lukas@lalinsky.com> 2025-11-14 17:48:19+01:00
log3a08d2f162de86e2613392c78e75df3b3a19aaf8
tree056242243fcece7c9420f8685c5858a79e471823
parentb38fb4bff31b76cbaa27157784139a71e290f2e9

Define std.c.MADV for NetBSD

The `.netbsd` branch was completely missing. Validated against the actual system headers.

1 files changed, 9 insertions(+), 0 deletions(-)

lib/std/c.zig+9
...@@ -1599,6 +1599,15 @@ pub const MADV = switch (native_os) {...@@ -1599,6 +1599,15 @@ pub const MADV = switch (native_os) {
1599 pub const SEQUENTIAL = 0x5;1599 pub const SEQUENTIAL = 0x5;
1600 pub const RANDOM = 0x6;1600 pub const RANDOM = 0x6;
1601 },1601 },
1602 .netbsd => struct {
1603 pub const NORMAL = 0;
1604 pub const RANDOM = 1;
1605 pub const SEQUENTIAL = 2;
1606 pub const WILLNEED = 3;
1607 pub const DONTNEED = 4;
1608 pub const SPACEAVAIL = 5;
1609 pub const FREE = 6;
1610 },
1602 else => void,1611 else => void,
1603};1612};
1604pub const MCL = switch (native_os) {1613pub const MCL = switch (native_os) {