Skip to content

ext/gd: conflicting iconv_t typedef breaking the Solaris build.#22810

Open
devnexen wants to merge 2 commits into
php:masterfrom
devnexen:gh22532_build_fix
Open

ext/gd: conflicting iconv_t typedef breaking the Solaris build.#22810
devnexen wants to merge 2 commits into
php:masterfrom
devnexen:gh22532_build_fix

Conversation

@devnexen

Copy link
Copy Markdown
Member

The gd 2.4 sync guarded gdkanji.c's 'typedef void *iconv_t' fallback with HAVE_ICONV_T_DEF, which the bundled build never defined. On Solaris <iconv.h> declares iconv_t as a struct pointer, so it clashed. Define HAVE_ICONV_T_DEF when <iconv.h> already provides iconv_t.

The gd 2.4 sync guarded gdkanji.c's 'typedef void *iconv_t' fallback
with HAVE_ICONV_T_DEF, which the bundled build never defined. On
Solaris <iconv.h> declares iconv_t as a struct pointer, so it clashed.
Define HAVE_ICONV_T_DEF when <iconv.h> already provides iconv_t.
@devnexen
devnexen requested a review from pierrejoye July 19, 2026 16:11
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