diff --git a/src/path.rs b/src/path.rs index 55cb6b4d9..59081ed20 100644 --- a/src/path.rs +++ b/src/path.rs @@ -695,7 +695,7 @@ pub fn path_remoteness(path: &wstr) -> DirRemoteness { #[cfg(not(any(target_os = "linux", cygwin)))] { fn remoteness_via_statfs( - statfn: unsafe extern "C" fn(*const i8, *mut StatFS) -> libc::c_int, + statfn: unsafe extern "C" fn(*const libc::c_char, *mut StatFS) -> libc::c_int, flagsfn: fn(&StatFS) -> Flags, is_local_flag: u64, path: &std::ffi::CStr,