Skip to content

Commit 164b2a3

Browse files
committed
move comment about android to the right place
1 parent ac4c81c commit 164b2a3

File tree

1 file changed

+3
-3
lines changed
  • signal-hook-registry/src

1 file changed

+3
-3
lines changed

signal-hook-registry/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ impl Slot {
179179

180180
new.sa_sigaction = handler as usize; // If it doesn't compile on AIX, upgrade the libc dependency
181181

182-
// Android is broken and uses different int types than the rest (and different depending on
183-
// the pointer width). This converts the flags to the proper type no matter what it is on
184-
// the given platform.
185182
#[cfg(target_os = "nto")]
186183
let flags = 0;
187184
// SA_RESTART is supported by qnx https://www.qnx.com/support/knowledgebase.html?id=50130000000SmiD
188185
#[cfg(not(target_os = "nto"))]
189186
let flags = libc::SA_RESTART;
187+
// Android is broken and uses different int types than the rest (and different depending on
188+
// the pointer width). This converts the flags to the proper type no matter what it is on
189+
// the given platform.
190190
#[allow(unused_assignments)]
191191
let mut siginfo = flags;
192192
siginfo = libc::SA_SIGINFO as _;

0 commit comments

Comments
 (0)