File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ pub unsafe fn setup_signal_handler<T: 'static + Handler>(handler: *mut T) -> Res
506
506
#[ inline( always) ]
507
507
pub fn ucontext ( ) -> Result < ucontext_t , Error > {
508
508
let mut ucontext = unsafe { mem:: zeroed ( ) } ;
509
- if cfg ! ( not( target_os = "openbsd" ) ) {
509
+ if cfg ! ( not( any ( target_os = "openbsd" , target_os = "haiku" ) ) ) {
510
510
if unsafe { getcontext ( & mut ucontext) } == 0 {
511
511
Ok ( ucontext)
512
512
} else {
Original file line number Diff line number Diff line change @@ -285,22 +285,24 @@ where
285
285
#[ cfg( test) ]
286
286
mod tests {
287
287
288
- use alloc:: {
289
- string:: { String , ToString } ,
290
- vec:: Vec ,
291
- } ;
292
-
288
+ #[ cfg( not( target_os = "haiku" ) ) ]
293
289
use serial_test:: serial;
294
290
295
- use crate :: {
296
- shmem:: { ShMemProvider , StdShMemProvider } ,
297
- staterestore:: StateRestorer ,
298
- } ;
299
-
300
291
#[ test]
301
292
#[ serial]
302
293
#[ cfg_attr( miri, ignore) ]
294
+ #[ cfg( not( target_os = "haiku" ) ) ]
303
295
fn test_state_restore ( ) {
296
+ use alloc:: {
297
+ string:: { String , ToString } ,
298
+ vec:: Vec ,
299
+ } ;
300
+
301
+ use crate :: {
302
+ shmem:: { ShMemProvider , StdShMemProvider } ,
303
+ staterestore:: StateRestorer ,
304
+ } ;
305
+
304
306
const TESTMAP_SIZE : usize = 1024 ;
305
307
306
308
let mut shmem_provider = StdShMemProvider :: new ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments