Skip to content

Commit de021e3

Browse files
author
MikaelUrankar
committed
FreeBSD 10.x is EOL, in FreeBSD 11 and later, ss_sp is actually a void* [1]
dragonflybsd still uses c_char [2] [1] https://svnweb.freebsd.org/base/releng/11.2/sys/sys/signal.h?revision=334459&view=markup#l438 [2] https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/signal.h#L339
1 parent 48e354d commit de021e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/stack_overflow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ mod imp {
140140
#[cfg(any(target_os = "linux",
141141
target_os = "macos",
142142
target_os = "bitrig",
143+
target_os = "freebsd",
143144
target_os = "netbsd",
144145
target_os = "openbsd",
145146
target_os = "solaris"))]
146147
unsafe fn get_stack() -> libc::stack_t {
147148
libc::stack_t { ss_sp: get_stackp(), ss_flags: 0, ss_size: SIGSTKSZ }
148149
}
149150

150-
#[cfg(any(target_os = "freebsd",
151-
target_os = "dragonfly"))]
151+
#[cfg(target_os = "dragonfly")]
152152
unsafe fn get_stack() -> libc::stack_t {
153153
libc::stack_t { ss_sp: get_stackp() as *mut i8, ss_flags: 0, ss_size: SIGSTKSZ }
154154
}

0 commit comments

Comments
 (0)