From 812c910d0551fd2f816fe4a59a76f9fb38a3dc67 Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Wed, 10 Feb 2016 19:54:56 -0800 Subject: [PATCH] this fixes the siginfo_t, adds missing pthread externs. --- src/unix/bsd/openbsdlike/netbsd.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/unix/bsd/openbsdlike/netbsd.rs b/src/unix/bsd/openbsdlike/netbsd.rs index 1ddfb190..b350f1d7 100644 --- a/src/unix/bsd/openbsdlike/netbsd.rs +++ b/src/unix/bsd/openbsdlike/netbsd.rs @@ -116,7 +116,8 @@ s! { pub si_code: ::c_int, pub si_errno: ::c_int, __pad1: ::c_int, - __pad2: [u64; 14], + pub si_addr: *mut ::c_void, + __pad2: [u64; 13], } pub struct pthread_attr_t { @@ -370,4 +371,11 @@ extern { pub fn pthread_setname_np(t: ::pthread_t, name: *const ::c_char, arg: *mut ::c_void) -> ::c_int; + pub fn pthread_getattr_np(native: ::pthread_t, + attr: *mut ::pthread_attr_t) -> ::c_int; + pub fn pthread_attr_getguardsize(attr: *const ::pthread_attr_t, + guardsize: *mut ::size_t) -> ::c_int; + pub fn pthread_attr_getstack(attr: *const ::pthread_attr_t, + stackaddr: *mut *mut ::c_void, + stacksize: *mut ::size_t) -> ::c_int; }