We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86bd459 commit 355a93cCopy full SHA for 355a93c
library/std/src/sys/pal/unix/stack_overflow.rs
@@ -265,7 +265,10 @@ mod imp {
265
/// Modern kernels on modern hardware can have dynamic signal stack sizes.
266
#[cfg(any(target_os = "linux", target_os = "android"))]
267
fn sigstack_size() -> usize {
268
- // FIXME: reuse const from libc when available?
+ #[cfg(target_os = "linux")]
269
+ const AT_MINSIGSTKSZ: crate::ffi::c_ulong = libc::AT_MINSIGSTKSZ;
270
+ // FIXME: reuse const from libc when available ?
271
+ #[cfg(target_os = "android")]
272
const AT_MINSIGSTKSZ: crate::ffi::c_ulong = 51;
273
let dynamic_sigstksz = unsafe { libc::getauxval(AT_MINSIGSTKSZ) };
274
// If getauxval couldn't find the entry, it returns 0,
0 commit comments