aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index 946c9db012..ffd1bee5ab 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -4998,7 +4998,7 @@ pub fn sendmsg(
flags: u32,
) SendMsgError!usize {
while (true) {
- const rc = system.sendmsg(sockfd, &msg, flags);
+ const rc = system.sendmsg(sockfd, @ptrCast(*const std.x.os.Socket.Message, &msg), @intCast(c_int, flags));
if (builtin.os.tag == .windows) {
if (rc == windows.ws2_32.SOCKET_ERROR) {
switch (windows.ws2_32.WSAGetLastError()) {