Skip to content

Simplify nanosleep Autoconf check #13490

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 1 commit into from
Feb 25, 2024
Merged

Simplify nanosleep Autoconf check #13490

merged 1 commit into from
Feb 25, 2024

Conversation

petk
Copy link
Member

@petk petk commented Feb 24, 2024

The nanosleep() is mostly found in libc, except on systems, such as Solaris <= 10 or the discontinued OpenSolaris, it is in the rt library.

This checks if nanosleep() exists in the libc, then it checks if rt library has nanosleep, prepends it to LIBS and defines the HAVE_NANOSLEEP symbol with the template from the AC_CHECK_FUNCS.

The nanosleep() is mostly found in libc, except on systems, such as
Solaris <= 10 or the discontinued OpenSolaris, it is in the rt library.

This checks if nanosleep() exists in the libc, then it checks if rt
library has nanosleep, prepends it to LIBS and defines the
HAVE_NANOSLEEP symbol with the template from the AC_CHECK_FUNCS.
@petk petk merged commit d024dd3 into php:master Feb 25, 2024
@petk petk deleted the patch-nanosleep branch February 25, 2024 17:28
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