Skip to content

Commit

Permalink
Rollup merge of rust-lang#97771 - rtzoeller:haiku_no_sigio, r=kennytm
Browse files Browse the repository at this point in the history
Remove SIGIO reference on Haiku

Haiku doesn't define SIGIO. The nix crate already employs this workaround:
https://github.com/nix-rust/nix/blob/5dedbc7850448ae3922ab0a833f3eb971bf7e25f/src/sys/signal.rs#L92-L94
  • Loading branch information
Dylan-DPC authored Jun 7, 2022
2 parents 62c260d + fac5cbc commit f32a4f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ fn signal_string(signal: i32) -> &'static str {
libc::SIGVTALRM => " (SIGVTALRM)",
libc::SIGPROF => " (SIGPROF)",
libc::SIGWINCH => " (SIGWINCH)",
#[cfg(not(target_os = "haiku"))]
libc::SIGIO => " (SIGIO)",
libc::SIGSYS => " (SIGSYS)",
// For information on Linux signals, run `man 7 signal`
Expand Down

0 comments on commit f32a4f0

Please sign in to comment.