authorgravatar for lukas@lalinsky.comLukas Lalinsky <lukas@lalinsky.com> 2026-01-24 12:26:00+01:00
committergravatar for lukas@lalinsky.comLukas Lalinsky <lukas@lalinsky.com> 2026-01-24 12:26:00+01:00
log5f950884a1390f135ea825b035b460ff680ebea3
tree50ed93195bc6e262818d0cd4ae67160b063d07b0
parent1b544f447ac373ad676ccf921a2e8f2d05def15f

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.

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/c.zig+1
...@@ -6026,6 +6026,7 @@ pub const IPPROTO = switch (native_os) {...@@ -6026,6 +6026,7 @@ pub const IPPROTO = switch (native_os) {
6026 pub const UDP = 17;6026 pub const UDP = 17;
6027 pub const IP = 0;6027 pub const IP = 0;
6028 pub const IPV6 = 41;6028 pub const IPV6 = 41;
6029 pub const RAW = 255;
6029 },6030 },
6030 .freebsd => struct {6031 .freebsd => struct {
6031 /// dummy for IP6032 /// dummy for IP