Skip to content

Commit 64ecb88

Browse files
committed
Correct definition of MADV_SOFT_OFFLINE on ppc
Rust has no "ppc" target_arch. It should be "powerpc" or "powerpc64".
1 parent da49e4f commit 64ecb88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/mman.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ libc_enum!{
210210
all(target_os = "linux", any(
211211
target_arch = "aarch64",
212212
target_arch = "arm",
213-
target_arch = "ppc",
213+
target_arch = "powerpc",
214+
target_arch = "powerpc64",
214215
target_arch = "s390x",
215216
target_arch = "x86",
216217
target_arch = "x86_64",

0 commit comments

Comments
 (0)