From 8a8aab3ed92ac0e4223950917eb36e668783ef61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 15 Oct 2026 01:59:14 +0200 Subject: [PATCH] std.c: fix RLIM constants for haiku --- lib/std/c.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 89215a66fe43e40cd185cdc695ad6575aaea00d8..8793ac326bdb9bada0975f019528442447a61fb9 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -1978,13 +1978,20 @@ pub const RLIM = switch (native_os) { .linux => linux.RLIM, .emscripten => emscripten.RLIM, // https://github.com/SerenityOS/serenity/blob/aae106e37b48f2158e68902293df1e4bf7b80c0f/Userland/Libraries/LibC/sys/resource.h#L52 - .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos, .serenity => struct { + .openbsd, .dragonfly, .netbsd, .freebsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos, .serenity => struct { /// No limit pub const INFINITY: rlim_t = (1 << 63) - 1; pub const SAVED_MAX = INFINITY; pub const SAVED_CUR = INFINITY; }, + .haiku => struct { + /// No limit + pub const INFINITY: rlim_t = 0xffffffff; + + pub const SAVED_MAX = INFINITY; + pub const SAVED_CUR = INFINITY; + }, .illumos => struct { /// No limit pub const INFINITY: rlim_t = (1 << 63) - 3; -- 2.54.0