Skip to content

Commit 1179ac7

Browse files
committed
Merge pull request rust-lang#181 from dhuseby/fixing_netbsd_siginfo_t
this fixes the siginfo_t compilation errors
2 parents 61eddaf + 812c910 commit 1179ac7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/unix/bsd/openbsdlike/netbsd.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ s! {
116116
pub si_code: ::c_int,
117117
pub si_errno: ::c_int,
118118
__pad1: ::c_int,
119-
__pad2: [u64; 14],
119+
pub si_addr: *mut ::c_void,
120+
__pad2: [u64; 13],
120121
}
121122

122123
pub struct pthread_attr_t {
@@ -370,4 +371,11 @@ extern {
370371
pub fn pthread_setname_np(t: ::pthread_t,
371372
name: *const ::c_char,
372373
arg: *mut ::c_void) -> ::c_int;
374+
pub fn pthread_getattr_np(native: ::pthread_t,
375+
attr: *mut ::pthread_attr_t) -> ::c_int;
376+
pub fn pthread_attr_getguardsize(attr: *const ::pthread_attr_t,
377+
guardsize: *mut ::size_t) -> ::c_int;
378+
pub fn pthread_attr_getstack(attr: *const ::pthread_attr_t,
379+
stackaddr: *mut *mut ::c_void,
380+
stacksize: *mut ::size_t) -> ::c_int;
373381
}

0 commit comments

Comments
 (0)