Skip to content

Commit bec86cb

Browse files
authored
Fix linux_5_11 on ARMv7. (#1542)
Fix the `cfg` conditions for `zero` so that it's available on armv7. Fixes #1538.
1 parent ee4a7fd commit bec86cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/backend/linux_raw/fs/syscalls.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ use crate::backend::conv::fs::oflags_for_open_how;
1414
target_arch = "riscv64",
1515
target_arch = "mips",
1616
target_arch = "mips32r6",
17+
all(
18+
target_pointer_width = "32",
19+
any(
20+
target_arch = "arm",
21+
target_arch = "powerpc"
22+
),
23+
)
1724
))]
1825
use crate::backend::conv::zero;
1926
use crate::backend::conv::{

0 commit comments

Comments
 (0)