Exchange-fd: fix a compilation issue (msghdr_const structure).

This commit is contained in:
Philippe Pittoli 2023-02-06 14:15:48 +01:00
parent c5f6729c71
commit 64506bbee0

View File

@ -88,7 +88,7 @@ pub fn send_fd(sockfd: os.socket_t, msg: []const u8, fd: os.fd_t) void {
.data = fd,
});
const len = os.sendmsg(sockfd, .{
const len = os.sendmsg(sockfd, &std.os.msghdr_const{
.name = null,
.namelen = 0,
.iov = &iov,