bolts: fix build for tiers 3 platforms. (#2700)

cater to platforms knowingly support this feature instead.
This commit is contained in:
David CARLIER 2024-11-18 16:36:41 +00:00 committed by GitHub
parent b4a69d15d0
commit f74a965ead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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::{