Skip to content

Commit 8787a4b

Browse files
committed
add missing method in wasi
1 parent bd9d6b2 commit 8787a4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sys/wasi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ pub(crate) fn msghdr_flags(msg: &msghdr) -> RecvFlags {
182182
RecvFlags(msg.msg_flags)
183183
}
184184

185+
pub(crate) fn msghdr_control_len(msg: &msghdr) -> usize {
186+
msg.msg_controllen as _
187+
}
188+
185189
/// Unix only API.
186190
impl SockAddr {
187191
/// Constructs a `SockAddr` with the family `AF_UNIX` and the provided path.

0 commit comments

Comments
 (0)