about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-03 13:50:22 +0000
committerbors <bors@rust-lang.org>2023-01-03 13:50:22 +0000
commite1968dd6120935055e138ab10c6e0a3f3f2288b9 (patch)
treeba3fe5528a05e3125c20931e1c5f1fac21eeeb6d /library/std/src/sys/unix/stack_overflow.rs
parent1010099fe359e4a01ebd873e3bdb2d66b60bc3ed (diff)
parent794cc0854a36f445307f8010a0ad8698da0bf5ed (diff)
downloadrust-e1968dd6120935055e138ab10c6e0a3f3f2288b9.tar.gz
rust-e1968dd6120935055e138ab10c6e0a3f3f2288b9.zip
Auto merge of #2747 - RalfJung:rustup, r=RalfJung
Rustup
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};