1 --- src/libstd/sys/unix/stack_overflow.rs.orig 2019-04-08 12:42:31 UTC
2 +++ src/libstd/sys/unix/stack_overflow.rs
3 @@ -141,6 +141,7 @@ mod imp {
4 #[cfg(any(target_os = "linux",
7 + target_os = "freebsd",
10 target_os = "solaris"))]
11 @@ -148,8 +149,7 @@ mod imp {
12 libc::stack_t { ss_sp: get_stackp(), ss_flags: 0, ss_size: SIGSTKSZ }
15 - #[cfg(any(target_os = "freebsd",
16 - target_os = "dragonfly"))]
17 + #[cfg(target_os = "dragonfly")]
18 unsafe fn get_stack() -> libc::stack_t {
19 libc::stack_t { ss_sp: get_stackp() as *mut i8, ss_flags: 0, ss_size: SIGSTKSZ }