mirror of
https://github.com/hashcat/hashcat
synced 2024-12-23 14:13:43 +01:00
use fallback qsort implementation on linux systems without glibc
This commit is contained in:
parent
fddb66eb1b
commit
24b8a838d4
@ -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 */
|
/* no qsort_r in glibc before 2.8, need to use nested qsort */
|
||||||
sort_r_simple(base, nel, width, compar, arg);
|
sort_r_simple(base, nel, width, compar, arg);
|
||||||
|
|
||||||
#else
|
#elif defined __GLIBC__
|
||||||
|
|
||||||
qsort_r(base, nel, width, compar, arg);
|
qsort_r(base, nel, width, compar, arg);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* Fall back to our own quicksort implementation */
|
||||||
|
sort_r_simple(base, nel, width, compar, arg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined _SORT_R_BSD
|
#elif defined _SORT_R_BSD
|
||||||
|
Loading…
Reference in New Issue
Block a user