From e5ee07bd39fb38bf4b3b610be5da91fdc2abb4a8 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 10 Sep 2023 08:53:41 -0700 Subject: [PATCH] Fix a few typos in `cfg`s. (#822) This enables `AddressFamily::SIP` on OpenBSD. --- src/backend/libc/process/syscalls.rs | 1 - src/net/types.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/libc/process/syscalls.rs b/src/backend/libc/process/syscalls.rs index 2846b7480..dd71801d5 100644 --- a/src/backend/libc/process/syscalls.rs +++ b/src/backend/libc/process/syscalls.rs @@ -22,7 +22,6 @@ use crate::backend::conv::ret_pid_t; use crate::backend::conv::ret_u32; #[cfg(all(feature = "alloc", not(target_os = "wasi")))] use crate::backend::conv::ret_usize; -#[cfg(not(target_os = "fucshia"))] use crate::backend::conv::{ret, ret_c_int}; #[cfg(not(any(target_os = "wasi", target_os = "fuchsia")))] use crate::fd::BorrowedFd; diff --git a/src/net/types.rs b/src/net/types.rs index 83357fbca..22414e022 100644 --- a/src/net/types.rs +++ b/src/net/types.rs @@ -455,7 +455,7 @@ impl AddressFamily { #[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))] pub const IMPLINK: Self = Self(c::AF_IMPLINK as _); /// `AF_IEEE80211` - #[cfg(any(apple, freebsdlike, linuxlike, target_os = "netbsd"))] + #[cfg(any(apple, freebsdlike, target_os = "netbsd"))] pub const IEEE80211: Self = Self(c::AF_IEEE80211 as _); /// `AF_INET6_SDP` #[cfg(target_os = "freebsd")] @@ -542,7 +542,7 @@ impl AddressFamily { #[cfg(target_os = "freebsd")] pub const SCLUSTER: Self = Self(c::AF_SCLUSTER as _); /// `AF_SIP` - #[cfg(any(apple, target_os = "freebsd", target_os = "opensbd"))] + #[cfg(any(apple, target_os = "freebsd", target_os = "openbsd"))] pub const SIP: Self = Self(c::AF_SIP as _); /// `AF_SLOW` #[cfg(target_os = "freebsd")]