about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-01-03 12:22:11 +0100
committerRalf Jung <post@ralfj.de>2023-01-03 12:22:11 +0100
commitd96592b4fdd2278b21bb0437c153f87e8c6013c0 (patch)
tree64c1ea7d0f54a249bf27d91b6f9792fcaa12a169 /library/std/src/sys/unix/stack_overflow.rs
parent99fc745656e24aa63b59d541fa7c7ccf2fb619eb (diff)
parent2bf39cfa25d9feb510604de662508acf2a98ec7c (diff)
downloadrust-d96592b4fdd2278b21bb0437c153f87e8c6013c0.tar.gz
rust-d96592b4fdd2278b21bb0437c153f87e8c6013c0.zip
Merge from rustc
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
-rw-r--r--library/std/src/sys/unix/stack_overflow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/stack_overflow.rs b/library/std/src/sys/unix/stack_overflow.rs
index 957e086798f..b59d4ba26af 100644
--- a/library/std/src/sys/unix/stack_overflow.rs
+++ b/library/std/src/sys/unix/stack_overflow.rs
@@ -45,9 +45,9 @@ mod imp {
     use crate::thread;
 
     use libc::MAP_FAILED;
-    #[cfg(not(target_os = "linux"))]
+    #[cfg(not(all(target_os = "linux", target_env = "gnu")))]
     use libc::{mmap as mmap64, munmap};
-    #[cfg(target_os = "linux")]
+    #[cfg(all(target_os = "linux", target_env = "gnu"))]
     use libc::{mmap64, munmap};
     use libc::{sigaction, sighandler_t, SA_ONSTACK, SA_SIGINFO, SIGBUS, SIG_DFL};
     use libc::{sigaltstack, SIGSTKSZ, SS_DISABLE};