Fix stack overflow detection on FreeBSD

src/libstd/sys/unix/thread.rs
	Implement several stack-related functions on FreeBSD

src/libstd/sys/unix/stack_overflow.rs
	Fix a comment
This commit is contained in:
Alan Somers
2016-04-04 14:18:44 +00:00
parent bbe8e3502c
commit abc3777c06
2 changed files with 45 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ mod imp {
unsafe fn siginfo_si_addr(info: *mut libc::siginfo_t) -> usize {
#[repr(C)]
struct siginfo_t {
a: [libc::c_int; 3], // si_signo, si_code, si_errno,
a: [libc::c_int; 3], // si_signo, si_errno, si_code
si_addr: *mut libc::c_void,
}