@@ -10,9 +10,9 @@ use core::fmt::Display;
10
10
use core:: { cell:: RefCell , fmt, mem:: ManuallyDrop } ;
11
11
#[ cfg( feature = "std" ) ]
12
12
use std:: env;
13
- #[ cfg( all( unix, feature = "std" ) ) ]
13
+ #[ cfg( all( unix, feature = "std" , not ( target_os = "haiku" ) ) ) ]
14
14
use std:: io:: Read ;
15
- #[ cfg( feature = "std" ) ]
15
+ #[ cfg( all ( feature = "std" , not ( target_os = "haiku" ) ) ) ]
16
16
use std:: io:: Write ;
17
17
18
18
use serde:: { Deserialize , Serialize } ;
@@ -27,7 +27,7 @@ pub use unix_shmem::{UnixShMem, UnixShMemProvider};
27
27
#[ cfg( all( windows, feature = "std" ) ) ]
28
28
pub use win32_shmem:: { Win32ShMem , Win32ShMemProvider } ;
29
29
30
- #[ cfg( all( unix, feature = "std" ) ) ]
30
+ #[ cfg( all( unix, feature = "std" , not ( target_os = "haiku" ) ) ) ]
31
31
use crate :: os:: pipes:: Pipe ;
32
32
#[ cfg( all( feature = "std" , unix, not( target_os = "haiku" ) ) ) ]
33
33
pub use crate :: os:: unix_shmem_server:: { ServedShMemProvider , ShMemService } ;
@@ -411,7 +411,7 @@ impl<T: ShMemProvider> Drop for RcShMem<T> {
411
411
/// that can use internal mutability.
412
412
/// Useful if the `ShMemProvider` needs to keep local state.
413
413
#[ derive( Debug , Clone ) ]
414
- #[ cfg( all( unix, feature = "std" ) ) ]
414
+ #[ cfg( all( unix, feature = "std" , not ( target_os = "haiku" ) ) ) ]
415
415
pub struct RcShMemProvider < SP >
416
416
where
417
417
SP : ShMemProvider ,
@@ -505,7 +505,7 @@ where
505
505
}
506
506
}
507
507
508
- #[ cfg( all( unix, feature = "std" ) ) ]
508
+ #[ cfg( all( unix, feature = "std" , not ( target_os = "haiku" ) ) ) ]
509
509
impl < SP > RcShMemProvider < SP >
510
510
where
511
511
SP : ShMemProvider ,
@@ -1457,7 +1457,7 @@ pub struct ShMemCursor<T: ShMem> {
1457
1457
pos : usize ,
1458
1458
}
1459
1459
1460
- #[ cfg( feature = "std" ) ]
1460
+ #[ cfg( all ( feature = "std" , not ( target_os = "haiku" ) ) ) ]
1461
1461
impl < T : ShMem > ShMemCursor < T > {
1462
1462
/// Create a new [`ShMemCursor`] around [`ShMem`]
1463
1463
pub fn new ( shmem : T ) -> Self {
@@ -1473,7 +1473,7 @@ impl<T: ShMem> ShMemCursor<T> {
1473
1473
}
1474
1474
}
1475
1475
1476
- #[ cfg( feature = "std" ) ]
1476
+ #[ cfg( all ( feature = "std" , not ( target_os = "haiku" ) ) ) ]
1477
1477
impl < T : ShMem > Write for ShMemCursor < T > {
1478
1478
fn write ( & mut self , buf : & [ u8 ] ) -> std:: io:: Result < usize > {
1479
1479
match self . empty_slice_mut ( ) . write ( buf) {
0 commit comments