Skip to content

Commit

Permalink
Fix android compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ovillanova authored Aug 22, 2024
1 parent bbe1cfa commit fd25dc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clone_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ async fn file_checksum(file: &mut File) -> Result<HashSum, std::io::Error> {
// Check if file is a regular file or block device
#[cfg(unix)]
async fn is_block_dev(file: &File) -> Result<bool, std::io::Error> {
#[cfg(target_os = "android")]
use std::os::android::fs::MetadataExt;
#[cfg(target_os = "linux")]
use std::os::linux::fs::MetadataExt;
#[cfg(target_os = "macos")]
Expand Down

0 comments on commit fd25dc8

Please sign in to comment.