mirror of
https://github.com/rustdesk/qemu-display.git
synced 2025-07-01 15:25:29 +00:00
qemu-display: update windows deps
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
12d7cd59c3
commit
f33c9c4659
@ -31,8 +31,8 @@ qapi = { version = "0.9.0", features = ["qmp"], optional = true }
|
|||||||
base64 = { version = "0.13", optional = true }
|
base64 = { version = "0.13", optional = true }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
uds_windows = "1.0.1"
|
uds_windows = "1.0.2"
|
||||||
windows = { version = "0.39.0", features = ["Win32_Networking_WinSock", "Win32_Foundation", "Win32_System_IO", "Win32_System_Threading"] }
|
windows = { version = "0.43.0", features = ["Win32_Networking_WinSock", "Win32_Foundation", "Win32_System_IO", "Win32_System_Threading"] }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies]
|
[target.'cfg(windows)'.dev-dependencies]
|
||||||
async-std = { version = "1.12.0", features = ["attributes"] }
|
async-std = { version = "1.12.0", features = ["attributes"] }
|
||||||
|
@ -98,12 +98,12 @@ pub(crate) fn unix_stream_get_peer_pid(stream: &UnixStream) -> Result<u32, std::
|
|||||||
WSAIoctl(
|
WSAIoctl(
|
||||||
SOCKET(socket as _),
|
SOCKET(socket as _),
|
||||||
SIO_AF_UNIX_GETPEERPID,
|
SIO_AF_UNIX_GETPEERPID,
|
||||||
0 as *mut _,
|
None,
|
||||||
0,
|
0,
|
||||||
&mut ret as *mut _ as *mut _,
|
Some(&mut ret as *mut _ as *mut _),
|
||||||
std::mem::size_of_val(&ret) as u32,
|
std::mem::size_of_val(&ret) as u32,
|
||||||
&mut bytes,
|
&mut bytes,
|
||||||
0 as *mut _,
|
None,
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user