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

[Bugfix][Android] posix_memalign appears in API 17, not 16 #3532

Merged
merged 1 commit into from Jul 11, 2019

Conversation

hlu1
Copy link
Contributor

@hlu1 hlu1 commented Jul 11, 2019

posix_memalign() was declared in <ndk-root>/platforms/android-16/arch-arm/usr/include/stdlib.h in the old ndks, but not present in libc on device. Starting from ndk r17, the headers are replaced by <ndk-root>/sysroot/usr/include/ with the following declaration, which clearly states that posix_memalign is included starting from API 17:

int posix_memalign(void** __memptr, size_t __alignment, size_t __size) __INTRODUCED_IN(17);

The credit goes to @gkmhub.

@tqchen tqchen merged commit 2d53f84 into apache:master Jul 11, 2019
@tqchen
Copy link
Member

tqchen commented Jul 11, 2019

Thanks @hlu1 @gkmhub!

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

Successfully merging this pull request may close these issues.

None yet

2 participants