Skip to content

Commit 901366a

Browse files
committed
fix c_char error in Android
1 parent 6fd1c2b commit 901366a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/fs/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,7 @@ fn set_times_impl(p: &CStr, times: FileTimes, flags: c_int) -> io::Result<()> {
21462146
// utimensat requires Android API level 19
21472147
cvt(unsafe {
21482148
weak!(
2149-
fn utimensat(dirfd: c_int, path: *const c_char, times: *const libc::timespec, flags: c_int) -> c_int;
2149+
fn utimensat(dirfd: c_int, path: *const libc::c_char, times: *const libc::timespec, flags: c_int) -> c_int;
21502150
);
21512151
match utimensat.get() {
21522152
Some(utimensat) => utimensat(libc::AT_FDCWD, p.as_ptr(), times.as_ptr(), flags),

0 commit comments

Comments
 (0)