From 13897541005c268535b40fb0f457da4dbdbe99a6 Mon Sep 17 00:00:00 2001 From: Akhil Thankachan Thomas Date: Tue, 28 Nov 2023 09:51:41 +0530 Subject: [PATCH] hide SA_RESTART for qnx --- signal-hook-registry/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/signal-hook-registry/src/lib.rs b/signal-hook-registry/src/lib.rs index e488906..085787c 100644 --- a/signal-hook-registry/src/lib.rs +++ b/signal-hook-registry/src/lib.rs @@ -165,6 +165,10 @@ impl Slot { // Android is broken and uses different int types than the rest (and different depending on // the pointer width). This converts the flags to the proper type no matter what it is on // the given platform. + #[cfg(target_os = "nto")] + let flags = 0; + // SA_RESTART is supported by qnx https://www.qnx.com/support/knowledgebase.html?id=50130000000SmiD + #[cfg(not(target_os = "nto"))] let flags = libc::SA_RESTART; #[allow(unused_assignments)] let mut siginfo = flags;