mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
wc: fix for 32-bit Android (#11452)
Co-authored-by: 白彩恋 <169267914+shirorren@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -302,7 +302,7 @@ fn is_stdin_small_file() -> bool {
|
||||
|
||||
matches!(
|
||||
stat::fstat(io::stdin().as_fd()),
|
||||
Ok(meta) if meta.st_mode & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
|
||||
Ok(meta) if meta.st_mode as libc::mode_t & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user