From 8f57688ddec84c4be5064b74fe2b35b62d03fa64 Mon Sep 17 00:00:00 2001 From: Patrick Mooney <pmooney@pfmooney.com> Date: Sun, 4 Oct 2020 18:47:00 +0000 Subject: [PATCH] pthread_getattr_np is not present on illumos --- src/unix/solarish/mod.rs | 4 ---- src/unix/solarish/solaris.rs | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index ad386a3c..21048bce 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -2268,10 +2268,6 @@ extern "C" { f: extern "C" fn(*mut ::c_void) -> *mut ::c_void, value: *mut ::c_void, ) -> ::c_int; - pub fn pthread_getattr_np( - thread: ::pthread_t, - attr: *mut ::pthread_attr_t, - ) -> ::c_int; pub fn pthread_attr_getstack( attr: *const ::pthread_attr_t, stackaddr: *mut *mut ::c_void, diff --git a/src/unix/solarish/solaris.rs b/src/unix/solarish/solaris.rs index 596029d1..469efbc6 100644 --- a/src/unix/solarish/solaris.rs +++ b/src/unix/solarish/solaris.rs @@ -65,6 +65,11 @@ extern "C" { ) -> ::c_int; pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int; + + pub fn pthread_getattr_np( + thread: ::pthread_t, + attr: *mut ::pthread_attr_t, + ) -> ::c_int; } s_no_extra_traits! { -- GitLab