Update cad/zcad to version 0.9.8.4_1
[dports.git] / lang / rust / files / patch-src_libstd_sys_unix_stack__overflow.rs
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",
5                target_os = "macos",
6                target_os = "bitrig",
7 +              target_os = "freebsd",
8                target_os = "netbsd",
9                target_os = "openbsd",
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 }
13      }
14  
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 }
20      }