diff options
-rw-r--r-- | src/http.zig | 2 | ||||
-rw-r--r-- | src/http_client_async.zig | 2 | ||||
-rw-r--r-- | src/io/io_darwin.zig | 4 | ||||
-rw-r--r-- | src/io/io_linux.zig | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/http.zig b/src/http.zig index 6f7258d23..923262d84 100644 --- a/src/http.zig +++ b/src/http.zig @@ -72,7 +72,7 @@ const URLPath = @import("./http/url_path.zig"); const Method = @import("./http/method.zig").Method; const SOCKET_FLAGS: u32 = if (Environment.isLinux) - os.SOCK.CLOEXEC | os.MSG_NOSIGNAL + os.SOCK.CLOEXEC | os.MSG.NOSIGNAL else os.SOCK.CLOEXEC; diff --git a/src/http_client_async.zig b/src/http_client_async.zig index 9c6b2230a..5f21de2a3 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -34,7 +34,7 @@ pub const Headers = struct { }; const SOCKET_FLAGS: u32 = if (Environment.isLinux) - SOCK.CLOEXEC | os.MSG_NOSIGNAL + SOCK.CLOEXEC | os.MSG.NOSIGNAL else SOCK.CLOEXEC; diff --git a/src/io/io_darwin.zig b/src/io/io_darwin.zig index d978a88f3..c072cd4bd 100644 --- a/src/io/io_darwin.zig +++ b/src/io/io_darwin.zig @@ -425,7 +425,7 @@ pub fn accept( ); errdefer os.close(fd); - // darwin doesn't support os.MSG_NOSIGNAL, + // darwin doesn't support os.MSG.NOSIGNAL, // but instead a socket option to avoid SIGPIPE. os.setsockopt(fd, os.SOL_SOCKET, os.SO_NOSIGPIPE, &mem.toBytes(@as(c_int, 1))) catch |err| return switch (err) { error.TimeoutTooBig => unreachable, @@ -758,7 +758,7 @@ pub fn openSocket(family: u32, sock_type: u32, protocol: u32) !os.socket_t { const fd = try os.socket(family, sock_type | os.SOCK.NONBLOCK, protocol); errdefer os.close(fd); - // darwin doesn't support os.MSG_NOSIGNAL, but instead a socket option to avoid SIGPIPE. + // darwin doesn't support os.MSG.NOSIGNAL, but instead a socket option to avoid SIGPIPE. try os.setsockopt(fd, os.SOL.SOCKET, os.SO.NOSIGPIPE, &mem.toBytes(@as(c_int, 1))); return fd; } diff --git a/src/io/io_linux.zig b/src/io/io_linux.zig index 67eadf5db..e4623486c 100644 --- a/src/io/io_linux.zig +++ b/src/io/io_linux.zig @@ -274,10 +274,10 @@ pub const Completion = struct { ); }, .recv => |op| { - linux.io_uring_prep_recv(sqe, op.socket, op.buffer, os.MSG_NOSIGNAL); + linux.io_uring_prep_recv(sqe, op.socket, op.buffer, os.MSG.NOSIGNAL); }, .send => |op| { - linux.io_uring_prep_send(sqe, op.socket, op.buffer, os.MSG_NOSIGNAL); + linux.io_uring_prep_send(sqe, op.socket, op.buffer, os.MSG.NOSIGNAL); }, .timeout => |*op| { linux.io_uring_prep_timeout(sqe, &op.timespec, 0, 0); |