From bd1332acaeabd7b846b4df7c63b1221858c80bf1 Mon Sep 17 00:00:00 2001 From: Ryan Zezeski Date: Sat, 25 Oct 2025 10:38:41 +0200 Subject: [PATCH] std.c: define MSG constants for solaris/illumos --- lib/std/c.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 1a801733bd..bd2b93f5ff 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -5776,6 +5776,20 @@ pub const MSG = switch (native_os) { pub const FBLOCKING = 0x10000; pub const FNONBLOCKING = 0x20000; }, + .solaris, .illumos => struct { + pub const OOB = 0x0001; + pub const PEEK = 0x0002; + pub const DONTROUTE = 0x0004; + pub const EOR = 0x0008; + pub const CTRUNC = 0x0010; + pub const TRUNC = 0x0020; + pub const WAITALL = 0x0040; + pub const DONTWAIT = 0x0080; + pub const NOTIFICATION = 0x0100; + pub const NOSIGNAL = 0x0200; + pub const CMSG_CLOEXEC = 0x1000; + pub const CMSG_CLOFORK = 0x2000; + }, else => void, }; pub const SOCK = switch (native_os) {