Skip to content

Commit 1b8c6aa

Browse files
authored
fix: exclude sparc/sparc64 from linux reflink path (#164)
1 parent 2deda90 commit 1b8c6aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/unix/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use cfg_if::cfg_if;
22

33
cfg_if! {
4-
if #[cfg(any(target_os = "linux", target_os = "android"))] {
4+
// ioctl_ficlone / FICLONERANGE are not available on SPARC platforms
5+
if #[cfg(all(any(target_os = "linux", target_os = "android"), not(any(target_arch = "sparc", target_arch = "sparc64"))))] {
56
mod linux;
67
pub use linux::reflink;
78
pub(crate) use linux::reflink_block;

0 commit comments

Comments
 (0)