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

Fix android compatibility #62

Merged
merged 1 commit into from
Apr 7, 2020
Merged

Fix android compatibility #62

merged 1 commit into from
Apr 7, 2020

Conversation

okhowang
Copy link
Contributor

@okhowang okhowang commented Apr 7, 2020

  1. langinfo
    <langinfo.h> is included by nl_langinfo which is used in condition.
    so I just sync this condition with headers. because some old ndk(r13) has no <langinfo.h>
  2. statfs
    according to https://stackoverflow.com/questions/8275203/compiling-a-subset-of-boost-libraries-for-android-ndk, android platform can use <vfs.h> instead of <statfs.h> immediately.
  3. utimensat
    api level < 12 has no utimensat function. see https://android-review.googlesource.com/c/platform/development/+/69602, and https://stackoverflow.com/questions/19374749/how-to-work-around-absence-of-futimes-in-android-ndk.
    so I use syscall instead. And define UTIME_OMIT if it's not defined

@gulrak
Copy link
Owner

gulrak commented Apr 7, 2020

Thank you for the PR!

@gulrak gulrak merged commit 6b30995 into gulrak:master Apr 7, 2020
@gulrak gulrak added this to the v1.3.4 milestone Apr 8, 2020
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 this pull request may close these issues.

2 participants