From 8910ac2ba877ebf745fb35b8ec9b21fdc70d092a Mon Sep 17 00:00:00 2001 From: Elaine Gibson Date: Sat, 31 May 2025 01:55:55 +0100 Subject: [PATCH] std.c.SOCK: define NONBLOCK and CLOEXEC for haiku --- lib/std/c.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 25d45ae8a6..6d49e8de8a 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -5703,6 +5703,9 @@ pub const SOCK = switch (native_os) { pub const RAW = 3; pub const SEQPACKET = 5; pub const MISC = 255; + + pub const NONBLOCK = 0x40000; + pub const CLOEXEC = 0x80000; }, .openbsd => struct { pub const STREAM = 1;