1 --- raptor2-2.0.15/src/sort_r.h.orig 2014-10-10 01:00:44.000000000 +0000
2 +++ raptor2-2.0.15/src/sort_r.h 2020-10-11 15:42:02.343998167 +0000
5 #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
6 # define _SORT_R_WINDOWS
7 +#elif (defined __sun__)
8 +# define _SORT_R_ILLUMOS
10 # error Cannot detect operating system
13 extern void qsort_r(void *base, size_t nel, size_t width,
14 __compar_d_fn_t __compar, void *arg)
15 __attribute__((nonnull (1, 4)));
16 + #elif defined _SORT_R_ILLUMOS
22 qsort_r(base, nel, width, &tmp, sort_r_arg_swap);
24 + #elif defined _SORT_R_ILLUMOS
26 + qsort_r(base, nel, width, compar, arg);
28 #else /* defined _SORT_R_WINDOWS */
30 struct sort_r_data tmp;
32 #undef _SORT_R_WINDOWS
35 +#undef _SORT_R_ILLUMOS
37 #endif /* SORT_R_H_ */