zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5f950884a1390f135ea825b035b460ff680ebea3 (tree)
parent 1b544f447ac373ad676ccf921a2e8f2d05def15f
Author: Lukas Lalinsky <lukas@lalinsky.com>
Date:   Sat, 24 Jan 2026 12:26:00 +0100

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.

Diffstat:
Mlib/std/c.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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