Skip to content

Commit 38d0e55

Browse files
committed
SIGSTKFLT doesn't exist on Linux/GNU/mips(64)
1 parent 6dd3625 commit 38d0e55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/signal.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub enum Signal {
3232
SIGPIPE = libc::SIGPIPE,
3333
SIGALRM = libc::SIGALRM,
3434
SIGTERM = libc::SIGTERM,
35-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(target_arch = "mips")))]
35+
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
3636
SIGSTKFLT = libc::SIGSTKFLT,
3737
SIGCHLD = libc::SIGCHLD,
3838
SIGCONT = libc::SIGCONT,
@@ -58,7 +58,7 @@ pub enum Signal {
5858

5959
pub use self::Signal::*;
6060

61-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(target_arch = "mips")))]
61+
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
6262
const SIGNALS: [Signal; 31] = [
6363
SIGHUP,
6464
SIGINT,
@@ -91,7 +91,7 @@ const SIGNALS: [Signal; 31] = [
9191
SIGIO,
9292
SIGPWR,
9393
SIGSYS];
94-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), target_arch = "mips"))]
94+
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), any(target_arch = "mips", target_arch = "mips64")))]
9595
const SIGNALS: [Signal; 30] = [
9696
SIGHUP,
9797
SIGINT,

0 commit comments

Comments
 (0)