Exchange-fd: fix a compilation issue (msghdr_const structure).
This commit is contained in:
parent
c5f6729c71
commit
64506bbee0
@ -88,7 +88,7 @@ pub fn send_fd(sockfd: os.socket_t, msg: []const u8, fd: os.fd_t) void {
|
|||||||
.data = fd,
|
.data = fd,
|
||||||
});
|
});
|
||||||
|
|
||||||
const len = os.sendmsg(sockfd, .{
|
const len = os.sendmsg(sockfd, &std.os.msghdr_const{
|
||||||
.name = null,
|
.name = null,
|
||||||
.namelen = 0,
|
.namelen = 0,
|
||||||
.iov = &iov,
|
.iov = &iov,
|
||||||
|
Loading…
Reference in New Issue
Block a user