Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ all = []
[package.metadata.cargo_check_external_types]
allowed_external_types = [
# Referenced via a type alias.
"libc::c_int",
"libc::primitives::c_int", # libc::c_int isn't always detected.
"libc::socklen_t",
"libc::*::socklen_t", # libc::socklen_t isn't always detected.
"libc::sa_family_t",
Expand Down
6 changes: 3 additions & 3 deletions src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ use crate::{Domain, Protocol, SockAddr, SockAddrStorage, TcpKeepalive, Type};
#[cfg(not(target_os = "redox"))]
use crate::{MsgHdr, MsgHdrMut, RecvFlags};

pub(crate) use libc::c_int;
pub(crate) use std::os::raw::c_int;

// Used in `Domain`.
pub(crate) use libc::{AF_INET, AF_INET6, AF_UNIX};
Expand Down Expand Up @@ -730,7 +730,7 @@ pub(crate) fn set_msghdr_control(msg: &mut msghdr, ptr: *mut libc::c_void, len:
}

#[cfg(not(target_os = "redox"))]
pub(crate) fn set_msghdr_flags(msg: &mut msghdr, flags: libc::c_int) {
pub(crate) fn set_msghdr_flags(msg: &mut msghdr, flags: c_int) {
msg.msg_flags = flags;
}

Expand Down Expand Up @@ -1002,7 +1002,7 @@ pub(crate) fn set_nonblocking(fd: Socket, nonblocking: bool) -> io::Result<()> {
fd,
libc::SOL_SOCKET,
libc::SO_NONBLOCK,
nonblocking as libc::c_int,
nonblocking as c_int,
)
}
}
Expand Down