Skip to content

Commit 689d18b

Browse files
committed
Use libc::c_int
1 parent 7255fdb commit 689d18b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ all = []
7070
[package.metadata.cargo_check_external_types]
7171
allowed_external_types = [
7272
# Referenced via a type alias.
73+
"libc::c_int",
74+
"libc::primitives::c_int", # libc::c_int isn't always detected.
7375
"libc::socklen_t",
7476
"libc::unix::bsd::socklen_t", # libc::socklen_t isn't always detected.
7577
"libc::sa_family_t",

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::ffi::c_int;
86+
pub(crate) use libc::c_int;
8787

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

0 commit comments

Comments
 (0)