about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2024-06-09 21:28:03 +0100
committerDavid Carlier <devnexen@gmail.com>2024-10-17 21:34:51 +0100
commite569c5c92f09007ef593fd897336b337c34fa5c0 (patch)
tree34727795cab0a404cc01f920c8d429fb59c2ce51
parent86bd45979a964678b40b79156744f0057759d840 (diff)
downloadrust-e569c5c92f09007ef593fd897336b337c34fa5c0.tar.gz
rust-e569c5c92f09007ef593fd897336b337c34fa5c0.zip
std::unix::stack_overflow::drop_handler addressing todo through libc update
-rw-r--r--library/std/src/sys/pal/unix/stack_overflow.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/sys/pal/unix/stack_overflow.rs b/library/std/src/sys/pal/unix/stack_overflow.rs
index ac0858e1de8..69b31da427f 100644
--- a/library/std/src/sys/pal/unix/stack_overflow.rs
+++ b/library/std/src/sys/pal/unix/stack_overflow.rs
@@ -265,9 +265,7 @@ mod imp {
     /// Modern kernels on modern hardware can have dynamic signal stack sizes.
     #[cfg(any(target_os = "linux", target_os = "android"))]
     fn sigstack_size() -> usize {
-        // FIXME: reuse const from libc when available?
-        const AT_MINSIGSTKSZ: crate::ffi::c_ulong = 51;
-        let dynamic_sigstksz = unsafe { libc::getauxval(AT_MINSIGSTKSZ) };
+        let dynamic_sigstksz = unsafe { libc::getauxval(libc::AT_MINSIGSTKSZ) };
         // If getauxval couldn't find the entry, it returns 0,
         // so take the higher of the "constant" and auxval.
         // This transparently supports older kernels which don't provide AT_MINSIGSTKSZ