Fix android compatibility by okhowang · Pull Request #62 · gulrak/filesystem · GitHub
Skip to content

Fix android compatibility - #62

Merged
gulrak merged 1 commit into
gulrak:masterfrom
okhowang:android
Apr 7, 2020
Merged

Fix android compatibility#62
gulrak merged 1 commit into
gulrak:masterfrom
okhowang:android

Conversation

@okhowang

@okhowang okhowang commented Apr 7, 2020

Copy link
Copy Markdown
Contributor
  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

gulrak commented Apr 7, 2020

Copy link
Copy Markdown
Owner

@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