Fix compilation on newer FreeBSD

Apparently qsort_r is a macro now. Check for it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
pull/3798/head
Rosen Penev 5 months ago
parent a381539545
commit 8d1fc952f7

@ -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…
Cancel
Save