Skip to content

Commit e5ee07b

Browse files
authored
Fix a few typos in cfgs. (#822)
This enables `AddressFamily::SIP` on OpenBSD.
1 parent 8073ab2 commit e5ee07b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/backend/libc/process/syscalls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use crate::backend::conv::ret_pid_t;
2222
use crate::backend::conv::ret_u32;
2323
#[cfg(all(feature = "alloc", not(target_os = "wasi")))]
2424
use crate::backend::conv::ret_usize;
25-
#[cfg(not(target_os = "fucshia"))]
2625
use crate::backend::conv::{ret, ret_c_int};
2726
#[cfg(not(any(target_os = "wasi", target_os = "fuchsia")))]
2827
use crate::fd::BorrowedFd;

src/net/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ impl AddressFamily {
455455
#[cfg(any(bsd, solarish, target_os = "aix", target_os = "nto"))]
456456
pub const IMPLINK: Self = Self(c::AF_IMPLINK as _);
457457
/// `AF_IEEE80211`
458-
#[cfg(any(apple, freebsdlike, linuxlike, target_os = "netbsd"))]
458+
#[cfg(any(apple, freebsdlike, target_os = "netbsd"))]
459459
pub const IEEE80211: Self = Self(c::AF_IEEE80211 as _);
460460
/// `AF_INET6_SDP`
461461
#[cfg(target_os = "freebsd")]
@@ -542,7 +542,7 @@ impl AddressFamily {
542542
#[cfg(target_os = "freebsd")]
543543
pub const SCLUSTER: Self = Self(c::AF_SCLUSTER as _);
544544
/// `AF_SIP`
545-
#[cfg(any(apple, target_os = "freebsd", target_os = "opensbd"))]
545+
#[cfg(any(apple, target_os = "freebsd", target_os = "openbsd"))]
546546
pub const SIP: Self = Self(c::AF_SIP as _);
547547
/// `AF_SLOW`
548548
#[cfg(target_os = "freebsd")]

0 commit comments

Comments
 (0)