Skip to content

Commit

Permalink
target_os = "linux" for MAX_IOV
Browse files Browse the repository at this point in the history
  • Loading branch information
cpubot committed Dec 20, 2024
1 parent 8fcf6e0 commit 74c62f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions streamer/src/sendmmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ fn sendmmsg_retry(sock: &UdpSocket, hdrs: &mut [mmsghdr]) -> Result<(), SendPkts
}
}

#[cfg(target_os = "linux")]
const MAX_IOV: usize = libc::UIO_MAXIOV as usize;

#[cfg(target_os = "linux")]
Expand Down

0 comments on commit 74c62f3

Please sign in to comment.