Skip to content

Commit 57316ab

Browse files
de-vri-esThomasdezeeuw
authored andcommitted
Use Linux value for fake MSG_TRUNC flag on Windows.
1 parent e78ae84 commit 57316ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sys/windows.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const WSA_FLAG_OVERLAPPED: DWORD = 0x01;
4343
pub use winapi::ctypes::c_int;
4444

4545
/// Fake MSG_TRUNC flag for the [`RecvFlags`] struct.
46-
pub(crate) const MSG_TRUNC: c_int = sock::WSAEMSGSIZE;
46+
///
47+
/// Value copied from Linux.
48+
pub(crate) const MSG_TRUNC: c_int = 0x20;
4749

4850
// Used in `Domain`.
4951
pub(crate) use winapi::shared::ws2def::{AF_INET, AF_INET6};

0 commit comments

Comments
 (0)