Skip to content

Commit

Permalink
Fix a few typos in cfgs. (#822)
Browse files Browse the repository at this point in the history
This enables `AddressFamily::SIP` on OpenBSD.
  • Loading branch information
sunfishcode authored Sep 10, 2023
1 parent 8073ab2 commit e5ee07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/backend/libc/process/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/net/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit e5ee07b

Please sign in to comment.