From 2eea1419cf5b9c7616251d74ab54d910279e14c7 Mon Sep 17 00:00:00 2001 From: sectordistrict <157201659+sectordistrict@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:32:43 +0300 Subject: [PATCH] do not compile on hurd and uclibc --- src/sys/mman.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sys/mman.rs b/src/sys/mman.rs index f866b867d2..ed43df2e44 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -42,7 +42,7 @@ libc_bitflags! { /// Share this mapping. Mutually exclusive with `MAP_PRIVATE`. MAP_SHARED; /// Force mmap to check and fail on unknown flags. This also enables `MAP_SYNC`. - #[cfg(all(any(target_arch = "x86"), not(linux_android)))] + #[cfg(all(any(target_arch = "x86"), not(linux_android), not(target_os = "hurd"), not(target_env = "uclibc")))] MAP_SHARED_VALIDATE; /// Create a private copy-on-write mapping. Mutually exclusive with `MAP_SHARED`. MAP_PRIVATE; @@ -145,8 +145,8 @@ libc_bitflags! { /// Region grows down, like a stack. #[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))] MAP_STACK; - /// Do not write through the page caches, write directly to the file. Used for Direct Access (DAX) enabled file systems. - #[cfg(all(any(target_arch = "x86"), not(linux_android)))] + /// Do not write through the page caches, write directly to the file. Used for Direct Access (DAX) enabled file systems. + #[cfg(all(any(target_arch = "x86"), not(linux_android), not(target_os = "hurd"), not(target_env = "uclibc")))] MAP_SYNC; /// Pages in this mapping are not retained in the kernel's memory cache. #[cfg(apple_targets)]