Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc::futimens is not available on Android #56

Closed
link2xt opened this issue Jul 26, 2020 · 1 comment · Fixed by #57
Closed

libc::futimens is not available on Android #56

link2xt opened this issue Jul 26, 2020 · 1 comment · Fixed by #57

Comments

@link2xt
Copy link
Contributor

link2xt commented Jul 26, 2020

This function is used here:

let rc = unsafe { libc::futimens(f.as_raw_fd(), times.as_ptr()) };

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 deltachat/deltachat-core-rust#1749 which depends on async-tar which in turn depends on filetime.

@link2xt
Copy link
Contributor Author

link2xt commented Jul 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant