Skip to content

Commit

Permalink
64bit version should be slightly better with future proofing
Browse files Browse the repository at this point in the history
  • Loading branch information
duplexsystem committed Apr 10, 2023
1 parent f5394a3 commit 50bdf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(crate) fn file_advise(file: &File, advice: c_int) -> Result<(), Error> {
#[cfg(all(unix, target_os = "linux"))]
unsafe {
use std::os::fd::AsRawFd;
error = libc::posix_fadvise(file.as_raw_fd(), 0, 0, advice);
error = libc::posix_fadvise64(file.as_raw_fd(), 0, 0, advice);
}

match error {
Expand Down

0 comments on commit 50bdf07

Please sign in to comment.