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

ndk-patches: use upstream ifaddrs.h and remove old syslog.h polyfills #4639

Merged
1 commit merged into from
Dec 29, 2019

Conversation

finagolfin
Copy link
Member

Now that this branch requires at least API 24, no need to supply an ifaddrs implementation anymore. Similar for syslog, its polyfills were added when this repo was first started, but most were implemented upstream similarly around the same time. I think the syslog_r/vsyslog_r declarations should just be thrown out, rather than simply forwarding to vsyslog, but I don't know if that would break anything, so I kept it for now.

I haven't tested this by building any packages, since I don't know which packages rely on them, so that should be done by the CI. I also haven't bothered bumping the sysroot/toolchain versions, as there's no hurry on this, can just be merged with the upcoming NDK 21 release.

@ghost
Copy link

ghost commented Dec 21, 2019

Do we really need to hide _USE_FILE_OFFSET64 in https://github.com/termux/termux-packages/blob/master/ndk-patches/sys-cdefs.h.patch#L13 if targeting to API 24 ?

There recently was a related issue - #4643.

@finagolfin
Copy link
Member Author

Seems like it was hidden a couple years ago when support for it wasn't that great, 2173f73, hopefully should be better by now. I can remove that too as part of this pull if you like.

@ghost ghost merged commit b0bcf2e into termux:master Dec 29, 2019
@fornwall
Copy link
Member

Thanks @buttaface, nice cleanup!

@finagolfin finagolfin deleted the headers branch December 29, 2019 20:59
fornwall added a commit that referenced this pull request Dec 29, 2019
After #4639 has been
merged linking against liblog for syslog-using code is no longer needed.
Grimler91 added a commit to termux/termux-root-packages that referenced this pull request Jan 11, 2020
This pull request was closed.
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.

None yet

2 participants