Skip to content

Commit

Permalink
Merge pull request #158 from SebastianSchildt/feature/qnx_neutrino_su…
Browse files Browse the repository at this point in the history
…pport

QNX Neutrino support
  • Loading branch information
vorner authored Apr 21, 2024
2 parents afa5feb + 1389754 commit 5de8bdd
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 5de8bdd

Please sign in to comment.