From ac3e4f45194ecf01d697d0cdc0c7af76f56f103c Mon Sep 17 00:00:00 2001 From: Ryan Zezeski Date: Sat, 25 Oct 2025 10:36:17 +0200 Subject: [PATCH] std.c: define arc4random_buf() for illumos --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 9d9c7c5708..1a801733bd 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -10298,7 +10298,7 @@ pub extern "c" fn setrlimit64(resource: rlimit_resource, rlim: *const rlimit) c_ pub const arc4random_buf = switch (native_os) { .linux => if (builtin.abi.isAndroid()) private.arc4random_buf else {}, - .dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .serenity, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf, + .dragonfly, .netbsd, .freebsd, .solaris, .illumos, .openbsd, .serenity, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf, else => {}, }; pub const getentropy = switch (native_os) {