mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-14 08:23:45 +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();
|
let mut from = InetAddress::new();
|
||||||
while ss.open.load(Ordering::Relaxed) {
|
while ss.open.load(Ordering::Relaxed) {
|
||||||
let mut b = bp.get();
|
let mut b = bp.get();
|
||||||
let mut addrlen: usize = std::mem::size_of::<InetAddress>().as_();
|
|
||||||
let s;
|
let s;
|
||||||
#[cfg(windows)] {
|
#[cfg(windows)]
|
||||||
|
{
|
||||||
|
let mut addrlen: usize = std::mem::size_of::<InetAddress>().as_();
|
||||||
s = 0;
|
s = 0;
|
||||||
todo!();
|
todo!();
|
||||||
}
|
}
|
||||||
#[cfg(not(windows))] {
|
#[cfg(not(windows))]
|
||||||
|
{
|
||||||
|
let mut addrlen = std::mem::size_of::<InetAddress>().as_();
|
||||||
s = libc::recvfrom(
|
s = libc::recvfrom(
|
||||||
ss.fd.as_(),
|
ss.fd.as_(),
|
||||||
b.entire_buffer_mut().as_mut_ptr().cast(),
|
b.entire_buffer_mut().as_mut_ptr().cast(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue