Skip to content

Commit 44e8f71

Browse files
heroin-moosezonyitoo
authored andcommitted
fix(shadowsocks): unbreak OpenBSD build
Add missing types.
1 parent 9b3d883 commit 44e8f71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/shadowsocks/src/net/sys/unix/others.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::{
22
io,
33
net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr},
44
ops::{Deref, DerefMut},
5+
os::fd::AsRawFd,
56
pin::Pin,
67
task::{self, Poll},
78
};
@@ -13,7 +14,7 @@ use tokio::{
1314
};
1415

1516
use crate::net::{
16-
sys::{set_common_sockopt_after_connect, set_common_sockopt_for_connect},
17+
sys::{ErrorKind, set_common_sockopt_after_connect, set_common_sockopt_for_connect},
1718
AcceptOpts,
1819
AddrFamily,
1920
ConnectOpts,

0 commit comments

Comments
 (0)