alexcrichton / filetime

Accessing file timestamps in a platform-agnostic fashion in Rust
Apache License 2.0
122 stars 56 forks source link

libc::futimens is not available on Android #56

Closed link2xt closed 4 years ago

link2xt commented 4 years ago

This function is used here: https://github.com/alexcrichton/filetime/blob/487c47d0a5f287564da8e9acd1cd5dd5a5f7869c/src/unix/utimensat.rs#L26

But it is not available on Android: https://stackoverflow.com/questions/19374749/how-to-work-around-absence-of-futimes-in-android-ndk

As a result, ndk-make throws an error undefined reference to 'futimens' when trying to build https://github.com/deltachat/deltachat-core-rust/pull/1749 which depends on async-tar which in turn depends on filetime.

link2xt commented 4 years ago

It builds with APP_PLATFORM := android-19, but not with APP_PLATFORM := android-18.