about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-05 15:14:18 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-05 15:14:18 -0500
commitfac5cbc2f59df4cf881e9117d271750c274cb4c0 (patch)
tree6f8bab9364aea9a017f2bd9adeabbfe185a71b94 /library/std/src/sys
parentfee3a459dd6aba8e34a5b99f0fbcb4218a1e2401 (diff)
downloadrust-fac5cbc2f59df4cf881e9117d271750c274cb4c0.tar.gz
rust-fac5cbc2f59df4cf881e9117d271750c274cb4c0.zip
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
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/unix/process/process_unix.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs
index ef29aa3c890..75bb92437fd 100644
--- a/library/std/src/sys/unix/process/process_unix.rs
+++ b/library/std/src/sys/unix/process/process_unix.rs
@@ -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`