Skip to content

Commit

Permalink
hide SA_RESTART for qnx
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhilTThomas authored and SebastianSchildt committed Apr 12, 2024
1 parent afa5feb commit 1389754
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions signal-hook-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1389754

Please sign in to comment.