Skip to content

Commit a4ac6a5

Browse files
committed
Fix FreeBSD <14.0 rtree usage
1 parent 38da26d commit a4ac6a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/H5private.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,8 @@ H5_DLL void HDqsort_fallback(void *base, size_t nel, size_t size,
776776
#endif
777777
#ifndef HDqsort_r
778778
#ifdef H5_HAVE_QSORT_REENTRANT
779-
#ifdef H5_HAVE_DARWIN
779+
#if defined(H5_HAVE_DARWIN) || (defined(__FreeBSD__) && __FreeBSD__ < 14)
780+
/* Darwin and FreeBSD < 14 use BSD-style qsort_r with different signature/argument order */
780781
#define HDqsort_r(B, N, S, C, A) HDqsort_context(B, N, S, C, A)
781782
#else
782783
#define HDqsort_r(B, N, S, C, A) qsort_r(B, N, S, C, A)

0 commit comments

Comments
 (0)