Skip to content

Commit 525c073

Browse files
committed
Remove SigevNotify on OpenBSD and Redox
Because nothing uses it on those OSes.
1 parent b6f7da6 commit 525c073

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7676
- Removed a couple of termios constants on redox that were never actually
7777
supported.
7878
(#[1483](https://github.com/nix-rust/nix/pull/1483))
79+
7980
- Removed `nix::sys::signal::NSIG`. It was of dubious utility, and not correct
8081
for all platforms.
8182
(#[1484](https://github.com/nix-rust/nix/pull/1484))
@@ -87,6 +88,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
8788
- Deprecated `SockAddr/InetAddr::to_str` in favor of `ToString::to_string`
8889
(#[1495](https://github.com/nix-rust/nix/pull/1495))
8990

91+
- Removed `SigevNotify` on OpenBSD and Redox.
92+
(#[1511](https://github.com/nix-rust/nix/pull/1511))
93+
9094
## [0.22.0] - 9 July 2021
9195
### Added
9296
- Added `if_nameindex` (#[1445](https://github.com/nix-rust/nix/pull/1445))

src/sys/signal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ pub type type_of_thread_id = libc::pid_t;
925925
// sigval is actually a union of a int and a void*. But it's never really used
926926
// as a pointer, because neither libc nor the kernel ever dereference it. nix
927927
// therefore presents it as an intptr_t, which is how kevent uses it.
928+
#[cfg(not(any(target_os = "openbsd", target_os = "redox")))]
928929
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
929930
pub enum SigevNotify {
930931
/// No notification will be delivered

0 commit comments

Comments
 (0)