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

Move iconv const check into autoconf #16847

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NattyNarwhal
Copy link
Member

Some systems (older NetBSD pre-10, Solaris) may have a non-standard const parameter with iconv. Instead of hardcoding the OS check, move this to a feature check performed by autoconf.

autoconf doesn't have a nicer way of checking this (well, except for AM_ICONV, which is part of gettext and we're presumably not using it), so we have to repeat the function signature and check for it with a mismatched signature.

Tested on NetBSD/amd64 9.4 (for const) and macOS/arm64 14 (for non-const).

Some systems (older NetBSD pre-10, Solaris) may have a non-standard
const parameter with iconv. Instead of hardcoding the OS check, move
this to a feature check performed by autoconf.

autoconf doesn't have a nicer way of checking this (well, except for
AM_ICONV, which is part of gettext and we're presumably not using it),
so we have to repeat the function signature and check for it with a
mismatched signature.
@NattyNarwhal
Copy link
Member Author

I added @devnexen and @petk for review since this basically obsoletes GH-16619.

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.

1 participant