diff --git a/lib/std/posix.zig b/lib/std/posix.zig index 71d7baa999..94d63cf9ef 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -6752,6 +6752,7 @@ pub const SetSockOptError = error{ // Setting the socket option requires more elevated permissions. PermissionDenied, + OperationNotSupported, NetworkSubsystemFailed, FileDescriptorNotASocket, SocketNotBound, @@ -6787,6 +6788,7 @@ pub fn setsockopt(fd: socket_t, level: i32, optname: u32, opt: []const u8) SetSo .NOBUFS => return error.SystemResources, .PERM => return error.PermissionDenied, .NODEV => return error.NoDevice, + .OPNOTSUPP => return error.OperationNotSupported, else => |err| return unexpectedErrno(err), } }