1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 18:08:20 +00:00

Merge pull request #1438 from Duncaen/musl

use fallback qsort implementation on linux systems without glibc
This commit is contained in:
Jens Steube 2017-11-13 09:06:34 +01:00 committed by GitHub
commit 5fa91ddbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,10 +186,15 @@ static _SORT_R_INLINE void sort_r_simple(void *base, size_t nel, size_t w,
/* no qsort_r in glibc before 2.8, need to use nested qsort */
sort_r_simple(base, nel, width, compar, arg);
#else
#elif defined __GLIBC__
qsort_r(base, nel, width, compar, arg);
#else
/* Fall back to our own quicksort implementation */
sort_r_simple(base, nel, width, compar, arg);
#endif
#elif defined _SORT_R_BSD