Skip to content

Commit 585cf31

Browse files
committed
Fix flock being not supported on Android raising an error
1 parent 1ac43cf commit 585cf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/flock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ mod sys {
378378
// For targets in which they are the same, the duplicate pattern causes a warning.
379379
#[allow(unreachable_patterns)]
380380
Some(libc::ENOTSUP | libc::EOPNOTSUPP) => true,
381-
#[cfg(target_os = "linux")]
381+
#[cfg(any(target_os = "linux", target_os = "android"))]
382382
Some(libc::ENOSYS) => true,
383383
_ => false,
384384
}

0 commit comments

Comments
 (0)