Skip to content

Refactor utsname.domainname struct member Autoconf check #13336

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

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

petk
Copy link
Member

@petk petk commented Feb 6, 2024

Autoconf's AC_CHECK_MEMBERS macro (available since Autoconf 2.50) can be used instead of the compile check. This was originally implemented for IRIX compatibility, when Autoconf 2.13 didn't have the struct members checking macro yet.

Macro by default here defines the HAVE_STRUCT_UTSNAME_DOMAINNAME symbol.

Autoconf's AC_CHECK_MEMBERS macro (available since Autoconf 2.50) can be
used instead of the compile check. This was originally implemented for
IRIX compatibility, when Autoconf 2.13 didn't have the struct members
checking macro yet.

Macro by default here defines the HAVE_STRUCT_UTSNAME_DOMAINNAME symbol.
Checking in the configuration step also correctly detects missing struct
member on Darwin systems (macos...).
@petk
Copy link
Member Author

petk commented Feb 6, 2024

@devnexen sorry, I've appended one more commit here - removal of the redundant DARWIN symbol check because on macOS this check already correctly detects missing domainname member.

@petk petk merged commit f9cfd40 into php:master Feb 6, 2024
@petk petk deleted the patch-utsname-domainname branch February 6, 2024 22:21
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.

2 participants