Skip to content

Commit

Permalink
Feature fix: SignalValue is now available with "aio" feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrysoliteAzalea committed Jun 17, 2024
1 parent bca19b8 commit 6c403e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ const SIGNALS: [Signal; 31] = [
// Support for real-time signals
/// Operating system signal value
#[cfg(target_os = "linux")]
#[cfg(any(feature = "signal"))]
#[cfg(any(feature = "aio", feature = "signal"))]
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum SignalValue {
/// Standard signal (passed as a Signal enum value)
Expand All @@ -389,7 +389,7 @@ pub enum SignalValue {
Standard(Signal),
}

#[cfg(feature = "signal")]
#[cfg(any(feature = "aio", feature = "signal"))]
impl SignalValue {
#[cfg(target_os = "linux")]
unsafe fn convert_to_int_unchecked(self) -> libc::c_int {
Expand Down

0 comments on commit 6c403e9

Please sign in to comment.