Skip to content

Commit cd2ac9b

Browse files
committed
Use c_int from std::ffi instead of std::os::raw
1 parent f219a00 commit cd2ac9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sys/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ use crate::{Domain, Protocol, SockAddr, SockAddrStorage, TcpKeepalive, Type};
8383
#[cfg(not(target_os = "redox"))]
8484
use crate::{MsgHdr, MsgHdrMut, RecvFlags};
8585

86-
pub(crate) use std::os::raw::c_int;
86+
pub(crate) use std::ffi::c_int;
8787

8888
// Used in `Domain`.
8989
pub(crate) use libc::{AF_INET, AF_INET6, AF_UNIX};

src/sys/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use windows_sys::Win32::System::Threading::INFINITE;
3535
use crate::{MsgHdr, RecvFlags, SockAddr, SockAddrStorage, TcpKeepalive, Type};
3636

3737
#[allow(non_camel_case_types)]
38-
pub(crate) type c_int = std::os::raw::c_int;
38+
pub(crate) type c_int = std::ffi::c_int;
3939

4040
/// Fake MSG_TRUNC flag for the [`RecvFlags`] struct.
4141
///

0 commit comments

Comments
 (0)