Skip to content

Commit 18cc89b

Browse files
authored
Use c_int from std::ffi instead of std::os::raw (#599)
1 parent adeb595 commit 18cc89b

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
@@ -68,7 +68,7 @@ use crate::{Domain, Protocol, SockAddr, SockAddrStorage, TcpKeepalive, Type};
6868
#[cfg(not(target_os = "redox"))]
6969
use crate::{MsgHdr, MsgHdrMut, RecvFlags};
7070

71-
pub(crate) use std::os::raw::c_int;
71+
pub(crate) use std::ffi::c_int;
7272

7373
// Used in `Domain`.
7474
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)