From 6c403e9cbaf9b274083303f47347aeed92443386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B7=D0=B0=D0=BB=D0=B8=D1=8F=20=D0=A1=D0=BC=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D0=B3=D0=B4=D0=BE=D0=B2=D0=B0?= Date: Mon, 17 Jun 2024 18:56:32 +0500 Subject: [PATCH] Feature fix: SignalValue is now available with "aio" feature --- src/sys/signal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/signal.rs b/src/sys/signal.rs index 4ef396497f..73ef7ead22 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -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) @@ -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 {