File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,13 @@ pub mod guard {
130
130
#[ cfg( any( target_os = "openbsd" , target_os = "bitrig" ) ) ]
131
131
pub unsafe fn current ( ) -> usize {
132
132
#[ repr( C ) ]
133
- pub struct stack_t {
133
+ struct stack_t {
134
134
ss_sp : * mut libc:: c_void ,
135
135
ss_size : libc:: size_t ,
136
136
ss_flags : libc:: c_int ,
137
137
}
138
138
extern {
139
+ fn pthread_main_np ( ) -> libc:: c_uint ;
139
140
fn pthread_stackseg_np ( thread : pthread_t ,
140
141
sinfo : * mut stack_t ) -> libc:: c_uint ;
141
142
}
@@ -339,9 +340,6 @@ fn min_stack_size(_: *const libc::pthread_attr_t) -> libc::size_t {
339
340
}
340
341
341
342
extern {
342
- #[ cfg( any( target_os = "bitrig" , target_os = "openbsd" ) ) ]
343
- fn pthread_main_np ( ) -> libc:: c_uint ;
344
-
345
343
fn pthread_self ( ) -> libc:: pthread_t ;
346
344
fn pthread_create ( native : * mut libc:: pthread_t ,
347
345
attr : * const libc:: pthread_attr_t ,
You can’t perform that action at this time.
0 commit comments