build fix

This commit is contained in:
Adam Ierymenko 2022-12-05 17:02:58 -05:00
parent dff2605544
commit a4fd7318c2

View file

@ -250,13 +250,16 @@ impl BoundUdpPort {
let mut from = InetAddress::new();
while ss.open.load(Ordering::Relaxed) {
let mut b = bp.get();
let mut addrlen: usize = std::mem::size_of::<InetAddress>().as_();
let s;
#[cfg(windows)] {
#[cfg(windows)]
{
let mut addrlen: usize = std::mem::size_of::<InetAddress>().as_();
s = 0;
todo!();
}
#[cfg(not(windows))] {
#[cfg(not(windows))]
{
let mut addrlen = std::mem::size_of::<InetAddress>().as_();
s = libc::recvfrom(
ss.fd.as_(),
b.entire_buffer_mut().as_mut_ptr().cast(),