Skip to content

Commit f32a4f0

Browse files
authored
Rollup merge of rust-lang#97771 - rtzoeller:haiku_no_sigio, r=kennytm
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
2 parents 62c260d + fac5cbc commit f32a4f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/sys/unix/process/process_unix.rs

+1
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ fn signal_string(signal: i32) -> &'static str {
730730
libc::SIGVTALRM => " (SIGVTALRM)",
731731
libc::SIGPROF => " (SIGPROF)",
732732
libc::SIGWINCH => " (SIGWINCH)",
733+
#[cfg(not(target_os = "haiku"))]
733734
libc::SIGIO => " (SIGIO)",
734735
libc::SIGSYS => " (SIGSYS)",
735736
// For information on Linux signals, run `man 7 signal`

0 commit comments

Comments
 (0)