From f74a965eadbdb9aedbd1cfd8768212db8745b0c2 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 18 Nov 2024 16:36:41 +0000 Subject: [PATCH] bolts: fix build for tiers 3 platforms. (#2700) cater to platforms knowingly support this feature instead. --- libafl_bolts/src/shmem.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libafl_bolts/src/shmem.rs b/libafl_bolts/src/shmem.rs index d4bc1e8855..35d24b6e37 100644 --- a/libafl_bolts/src/shmem.rs +++ b/libafl_bolts/src/shmem.rs @@ -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::{