mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-03-07 15:25:04 +00:00
Fix a unused import warning
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
543de41f89
commit
71e0d57efb
@ -1,5 +1,4 @@
|
||||
use std::io;
|
||||
use std::os::windows::io::AsRawSocket;
|
||||
use windows::Win32::Foundation::{CloseHandle, HANDLE};
|
||||
use windows::Win32::Networking::WinSock::{WSADuplicateSocketW, SOCKET, WSAPROTOCOL_INFOW};
|
||||
use windows::Win32::System::Threading::PROCESS_ACCESS_RIGHTS;
|
||||
@ -81,6 +80,7 @@ pub(crate) fn wsa_last_err() -> io::Error {
|
||||
// Get the process ID of the connected peer
|
||||
#[cfg(feature = "qmp")]
|
||||
pub(crate) fn unix_stream_get_peer_pid(stream: &UnixStream) -> Result<u32, std::io::Error> {
|
||||
use std::os::windows::io::AsRawSocket;
|
||||
use windows::Win32::Networking::WinSock::{WSAIoctl, IOC_OUT, IOC_VENDOR, SOCKET_ERROR};
|
||||
|
||||
macro_rules! _WSAIOR {
|
||||
|
Loading…
x
Reference in New Issue
Block a user