Skip to content

Commit 5de8bdd

Browse files
authored
Merge pull request #158 from SebastianSchildt/feature/qnx_neutrino_support
QNX Neutrino support
2 parents afa5feb + 1389754 commit 5de8bdd

File tree

1 file changed

+4
-0
lines changed
  • signal-hook-registry/src

1 file changed

+4
-0
lines changed

signal-hook-registry/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ impl Slot {
165165
// Android is broken and uses different int types than the rest (and different depending on
166166
// the pointer width). This converts the flags to the proper type no matter what it is on
167167
// the given platform.
168+
#[cfg(target_os = "nto")]
169+
let flags = 0;
170+
// SA_RESTART is supported by qnx https://www.qnx.com/support/knowledgebase.html?id=50130000000SmiD
171+
#[cfg(not(target_os = "nto"))]
168172
let flags = libc::SA_RESTART;
169173
#[allow(unused_assignments)]
170174
let mut siginfo = flags;

0 commit comments

Comments
 (0)