]> git.proxmox.com Git - cargo.git/commitdiff
Fix flock being not supported on Android raising an error
authorMarco Capypara Köpcke <hello@capypara.de>
Thu, 11 Aug 2022 13:47:09 +0000 (15:47 +0200)
committerMarco Capypara Köpcke <hello@capypara.de>
Thu, 11 Aug 2022 13:47:09 +0000 (15:47 +0200)
src/cargo/util/flock.rs

index 755bcdcd9103944d618f1f73563e374f702098ae..3ef6f961d590013fe897e07c751c6c03a91ce945 100644 (file)
@@ -378,7 +378,7 @@ mod sys {
             // For targets in which they are the same, the duplicate pattern causes a warning.
             #[allow(unreachable_patterns)]
             Some(libc::ENOTSUP | libc::EOPNOTSUPP) => true,
-            #[cfg(target_os = "linux")]
+            #[cfg(any(target_os = "linux", target_os = "android"))]
             Some(libc::ENOSYS) => true,
             _ => false,
         }