-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
introduce ZSTD_USE_C90_QSORT #4312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 294, 310 should be
#elif defined(_GNU_SOURCE) && defined(ZSTD_USE_C90_QSORT)
Otherwise I don't think this code compiles.
I see your point (though it's missing a Interestingly, there is a Anyway, seems like the test needs to be reinforced. |
It's a warning:
Run with -Werror? |
Sure, but also the current runtime test would miss the consequences of this signature mismatch (still completes successfully), so it needs an update too. |
and upgraded the test so that it would fail, both at compile time and at run time, without the fix
and upgraded the test so that it would fail, both at compile time and at run time, without the fix
fix #4312 - musl compilation compatibility
in order to compile successfully when
qsort_r()
isn't supported and this is not detectable at compile time,such as, for example, older versions of
musl
.Fixes #4311