From 5f950884a1390f135ea825b035b460ff680ebea3 Mon Sep 17 00:00:00 2001 From: Lukas Lalinsky Date: Sat, 24 Jan 2026 12:26:00 +0100 Subject: [PATCH] std.c: add IPPROTO_RAW for Darwin platforms IPPROTO_RAW (255) was missing from the Darwin/macOS IPPROTO struct, even though it is defined in system headers and supported by the platform. This is a commonly used protocol for raw IP sockets. --- lib/std/c.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 1fa47a3121..6bbf3cbe46 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -6026,6 +6026,7 @@ pub const IPPROTO = switch (native_os) { pub const UDP = 17; pub const IP = 0; pub const IPV6 = 41; + pub const RAW = 255; }, .freebsd => struct { /// dummy for IP