Skip to content

Commit 1855eca

Browse files
committed
Fix Windows build
Signed-off-by: John Nunley <[email protected]>
1 parent 7b2fd4e commit 1855eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ fn connect(
19941994
let flags = rn::SocketFlags::empty();
19951995

19961996
// Create the socket.
1997-
let socket = rn::socket_with(domain, rn::SocketFlags::STREAM, flags, protocol)?;
1997+
let socket = rn::socket_with(domain, rn::SocketType::STREAM, flags, protocol)?;
19981998

19991999
// Set cloexec if necessary.
20002000
#[cfg(any(

0 commit comments

Comments
 (0)