Fix build compiler flags for windows

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent a2d7617d94
commit d4069b14ae

@ -1,5 +1,6 @@
use async_trait::async_trait; use async_trait::async_trait;
use rmp_ipc::error::Result; use rmp_ipc::error::Result;
use rmp_ipc::prelude::IPCError;
use rmp_ipc::prelude::IPCResult; use rmp_ipc::prelude::IPCResult;
use rmp_ipc::protocol::*; use rmp_ipc::protocol::*;
use std::io::Error; use std::io::Error;
@ -55,6 +56,7 @@ impl AsyncStreamProtocolListener for ApiProtocolListener {
async fn protocol_accept(&self) -> Result<(Self::Stream, Self::RemoteAddressType)> { async fn protocol_accept(&self) -> Result<(Self::Stream, Self::RemoteAddressType)> {
match self { match self {
#[cfg(unix)]
ApiProtocolListener::UnixSocket(listener) => { ApiProtocolListener::UnixSocket(listener) => {
let (stream, addr) = listener.accept().await?; let (stream, addr) = listener.accept().await?;
Ok(( Ok((

Loading…
Cancel
Save