commit 8910ac2ba877ebf745fb35b8ec9b21fdc70d092a (tree)
parent 8cd56e70886e9ccc1f6a1c7978b32ba7e79516e0
Author: Elaine Gibson <ypsvlq@gmail.com>
Date: Sat, 31 May 2025 01:55:55 +0100
std.c.SOCK: define NONBLOCK and CLOEXEC for haiku
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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;