Skip to content

Commit

Permalink
fixup! unix: fix send/recvmmsg when using musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuetuopay committed Feb 20, 2024
1 parent 3570d60 commit 8edaeb7
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,16 +1152,7 @@ pub(crate) fn recvmmsg(
fd,
msgs.inner.as_mut_ptr(),
msgs.inner.len() as _,
{
#[cfg(target_env = "musl")]
{
flags as u32
}
#[cfg(not(target_env = "musl"))]
{
flags
}
},
flags as _,
ptr::null_mut()
))
.map(|n| n as usize)
Expand Down Expand Up @@ -1246,16 +1237,7 @@ pub(crate) fn sendmmsg(fd: Socket, msgs: &MmsgHdr<'_, '_, '_>, flags: c_int) ->
fd,
msgs.inner.as_ptr() as *mut _,
msgs.inner.len() as _,
{
#[cfg(target_env = "musl")]
{
flags as u32
}
#[cfg(not(target_env = "musl"))]
{
flags
}
},
flags as _,
))
.map(|n| n as usize)
}
Expand Down

0 comments on commit 8edaeb7

Please sign in to comment.