Skip to content

Commit

Permalink
fixup! unix: fix send/recvmmsg on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuetuopay committed Feb 20, 2024
1 parent 15dd43d commit 3570d60
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 @@ -1151,16 +1151,7 @@ pub(crate) fn recvmmsg(
syscall!(recvmmsg(
fd,
msgs.inner.as_mut_ptr(),
{
#[cfg(target_os = "freebsd")]
{
msgs.inner.len()
}
#[cfg(not(target_os = "freebsd"))]
{
msgs.inner.len() as u32
}
},
msgs.inner.len() as _,
{
#[cfg(target_env = "musl")]
{
Expand Down Expand Up @@ -1254,16 +1245,7 @@ pub(crate) fn sendmmsg(fd: Socket, msgs: &MmsgHdr<'_, '_, '_>, flags: c_int) ->
syscall!(sendmmsg(
fd,
msgs.inner.as_ptr() as *mut _,
{
#[cfg(target_os = "freebsd")]
{
msgs.inner.len()
}
#[cfg(not(target_os = "freebsd"))]
{
msgs.inner.len() as u32
}
},
msgs.inner.len() as _,
{
#[cfg(target_env = "musl")]
{
Expand Down

0 comments on commit 3570d60

Please sign in to comment.