We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7befc42 commit 43cf384Copy full SHA for 43cf384
src/sys/mman.rs
@@ -139,7 +139,15 @@ libc_enum!{
139
#[cfg(any(target_os = "android", target_os = "linux"))]
140
MADV_UNMERGEABLE,
141
/// Preserve the memory of each page but offline the original page.
142
- #[cfg(any(target_os = "android", target_os = "linux"))]
+ #[cfg(any(target_os = "android",
143
+ all(target_os = "linux", any(
144
+ target_arch = "aarch64",
145
+ target_arch = "arm",
146
+ target_arch = "ppc",
147
+ target_arch = "s390x",
148
+ target_arch = "x86",
149
+ target_arch = "x86_64",
150
+ target_arch = "sparc64"))))]
151
MADV_SOFT_OFFLINE,
152
/// Enable Transparent Huge Pages (THP) for pages in the given range.
153
0 commit comments