Skip to content

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
@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