mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
Fix compilation on newer FreeBSD
Apparently qsort_r is a macro now. Check for it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
1685f11b87
commit
6aaf0f3ac4
@ -138,7 +138,7 @@ static _SORT_R_INLINE void sort_r_simple(void *base, size_t nel, size_t w,
|
||||
|
||||
/* Declare structs and functions */
|
||||
|
||||
#if defined _SORT_R_BSD
|
||||
#if defined _SORT_R_BSD && !defined(qsort_r)
|
||||
|
||||
/* Ensure qsort_r is defined */
|
||||
extern void qsort_r(void *base, size_t nel, size_t width, void *thunk,
|
||||
|
Loading…
Reference in New Issue
Block a user