Skip to content

Commit b4c81e9

Browse files
authored
Merge pull request #1912 from pfmooney/illumos-pthread-getattr
pthread_getattr_np is not present on illumos
2 parents 02fe5de + 8f57688 commit b4c81e9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/unix/solarish/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,10 +2268,6 @@ extern "C" {
22682268
f: extern "C" fn(*mut ::c_void) -> *mut ::c_void,
22692269
value: *mut ::c_void,
22702270
) -> ::c_int;
2271-
pub fn pthread_getattr_np(
2272-
thread: ::pthread_t,
2273-
attr: *mut ::pthread_attr_t,
2274-
) -> ::c_int;
22752271
pub fn pthread_attr_getstack(
22762272
attr: *const ::pthread_attr_t,
22772273
stackaddr: *mut *mut ::c_void,

src/unix/solarish/solaris.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ extern "C" {
6565
) -> ::c_int;
6666

6767
pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int;
68+
69+
pub fn pthread_getattr_np(
70+
thread: ::pthread_t,
71+
attr: *mut ::pthread_attr_t,
72+
) -> ::c_int;
6873
}
6974

7075
s_no_extra_traits! {

0 commit comments

Comments
 (0)