Skip to content

Commit 1e382ff

Browse files
author
Bryant Mairs
committed
Remove bitrig #[cfgs
Bitrig is in the process of re-merging with OpenBSD as is no longer actively developed. Additionally it was never tested, and probably was quite broken, for nix. So let's remove all references and not even pretend to support it.
1 parent b335685 commit 1e382ff

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/errno.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ unsafe fn errno_location() -> *mut c_int {
1313
__error()
1414
}
1515

16-
#[cfg(target_os = "bitrig")]
17-
fn errno_location() -> *mut c_int {
18-
extern {
19-
fn __errno() -> *mut c_int;
20-
}
21-
unsafe {
22-
__errno()
23-
}
24-
}
25-
2616
#[cfg(target_os = "dragonfly")]
2717
unsafe fn errno_location() -> *mut c_int {
2818
extern { fn __dfly_error() -> *mut c_int; }
@@ -520,7 +510,7 @@ fn desc(errno: Errno) -> &'static str {
520510

521511
#[cfg(target_os = "dragonfly")]
522512
EUNUSED94 | EUNUSED95 | EUNUSED96 | EUNUSED97 | EUNUSED98 => "Unused",
523-
513+
524514
#[cfg(target_os = "dragonfly")]
525515
EASYNC => "Async",
526516
}

src/sys/aio.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ libc_enum! {
1919
/// do it like `fsync`
2020
O_SYNC,
2121
/// on supported operating systems only, do it like `fdatasync`
22-
#[cfg(any(target_os = "bitrig",
23-
target_os = "ios",
22+
#[cfg(any(target_os = "ios",
2423
target_os = "linux",
2524
target_os = "macos",
2625
target_os = "netbsd",

0 commit comments

Comments
 (0)