diff --git a/Cargo.toml b/Cargo.toml index 4ac296d4..646b4001 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ fnv = "1.0.3" futures = { version = "0.3", optional = true } futures-test = { version = "0.3", optional = true } lazy_static = "1" -libc = "0.2.161" +libc = "0.2.162" rand = "0.8" serde = { version = "1.0", features = ["rc"] } uuid = { version = "1", features = ["v4"] } diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index f04c5fca..fcd536ce 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -32,7 +32,7 @@ use std::hash::BuildHasherDefault; use std::io; use std::marker::PhantomData; use std::mem; -use std::ops::{Deref, DerefMut, RangeFrom}; +use std::ops::{Deref, RangeFrom}; use std::os::fd::RawFd; use std::ptr; use std::slice; @@ -54,9 +54,9 @@ const SOCK_FLAGS: c_int = libc::SOCK_CLOEXEC; #[cfg(not(any(target_os = "linux", target_os = "illumos")))] const SOCK_FLAGS: c_int = 0; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "illumos"))] const RECVMSG_FLAGS: c_int = libc::MSG_CMSG_CLOEXEC; -#[cfg(not(target_os = "linux"))] +#[cfg(not(any(target_os = "linux", target_os = "illumos")))] const RECVMSG_FLAGS: c_int = 0; #[cfg(target_env = "gnu")]