bolts: fix build for tiers 3 platforms. (#2700)
cater to platforms knowingly support this feature instead.
This commit is contained in:
parent
b4a69d15d0
commit
f74a965ead
@ -1342,7 +1342,11 @@ pub mod unix_shmem {
|
||||
}
|
||||
|
||||
/// Module containing `memfd` shared memory support, usable on Linux and Android.
|
||||
#[cfg(all(unix, feature = "std", not(target_vendor = "apple")))]
|
||||
#[cfg(all(
|
||||
unix,
|
||||
feature = "std",
|
||||
any(target_os = "linux", target_os = "android", target_os = "freebsd")
|
||||
))]
|
||||
pub mod memfd {
|
||||
use alloc::string::ToString;
|
||||
use core::{
|
||||
|
Loading…
x
Reference in New Issue
Block a user