Skip to content

Commit 87d0076

Browse files
committed
Unfortunately Android doesn't have futimes
1 parent a569520 commit 87d0076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ extern {
523523
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
524524
pub fn utimes(filename: *const ::c_char,
525525
times: *const ::timeval) -> ::c_int;
526-
pub fn futimes(fd: ::c_int, times: *const ::timeval) -> ::c_int;
527526
pub fn dlopen(filename: *const ::c_char,
528527
flag: ::c_int) -> *mut ::c_void;
529528
pub fn dlerror() -> *mut ::c_char;
@@ -695,6 +694,7 @@ extern {
695694
pub fn mkstemp(template: *mut ::c_char) -> ::c_int;
696695
pub fn mkstemps(template: *mut ::c_char, suffixlen: ::c_int) -> ::c_int;
697696
pub fn mkdtemp(template: *mut ::c_char) -> *mut ::c_char;
697+
pub fn futimes(fd: ::c_int, times: *const ::timeval) -> ::c_int;
698698
}
699699

700700
cfg_if! {

0 commit comments

Comments
 (0)