diff options
Diffstat (limited to 'src/unix/bsd/netbsdlike')
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index ba28bce19e..97e2634ad8 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -8,6 +8,7 @@ pub type idtype_t = ::c_int; pub type mqd_t = ::c_int; type __pthread_spin_t = __cpu_simple_lock_nv_t; pub type vm_size_t = ::uintptr_t; +pub type lwpid_t = ::c_uint; impl siginfo_t { pub unsafe fn si_value(&self) -> ::sigval { @@ -1714,6 +1715,8 @@ extern "C" { flags: ::c_int, timeout: *mut ::timespec, ) -> ::c_int; + + pub fn _lwp_self() -> lwpid_t; } #[link(name = "util")] |