Skip to content

[Bug 20151] Fix build failure of FreeBSD 14.x #10814

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 3 commits into from
May 21, 2024
Merged

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented May 21, 2024

hsbt added 3 commits May 21, 2024 13:25
	[Bug #18997] Don't define ruby_qsort when POSIX qsort_r is available

	The current code would define ruby_qsort as a wrapper of qsort_s
	when it is available. When both qsort_s and POSIX (GNU) qsort_r
	are available, we should call qsort_r directly instead, and
	the qsort_s wrapper is redundant.
	---
	 util.c | 6 ++++--
	 1 file changed, 4 insertions(+), 2 deletions(-)
	Delete a macro that has never been used, probably added by mistake

	---
	 util.c | 7 -------
	 1 file changed, 7 deletions(-)
	Include headers for `ruby_qsort` only if needed

	If GNU `qsort_r` is available, we use the function and these headers
	are not used.
	---
	 util.c | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
@hsbt hsbt merged commit 07c1122 into ruby:ruby_3_1 May 21, 2024
80 checks passed
@hsbt hsbt deleted the bug-20151 branch May 21, 2024 05:06
@hsbt hsbt added the Backport label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant