1
0
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:
Rosen Penev 2023-12-08 16:47:24 -08:00
parent 1685f11b87
commit 6aaf0f3ac4

View File

@ -138,7 +138,7 @@ static _SORT_R_INLINE void sort_r_simple(void *base, size_t nel, size_t w,
/* Declare structs and functions */ /* Declare structs and functions */
#if defined _SORT_R_BSD #if defined _SORT_R_BSD && !defined(qsort_r)
/* Ensure qsort_r is defined */ /* Ensure qsort_r is defined */
extern void qsort_r(void *base, size_t nel, size_t width, void *thunk, extern void qsort_r(void *base, size_t nel, size_t width, void *thunk,