mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-10 14:33:44 +02:00
build fix
This commit is contained in:
parent
dff2605544
commit
a4fd7318c2
1 changed files with 6 additions and 3 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue