gst-libav1: update to 1.24.11
[oi-userland.git] / components / library / raptor2 / patches / 02-sort_r.h.patch
blobf4b710a8cd66d4caa71bf07426f3366acd4e4e51
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
3 @@ -31,6 +31,8 @@
4 # define _SORT_R_LINUX
5 #elif (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
6 # define _SORT_R_WINDOWS
7 +#elif (defined __sun__)
8 +# define _SORT_R_ILLUMOS
9 #else
10 # error Cannot detect operating system
11 #endif
12 @@ -85,6 +87,7 @@
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
18 #endif
20 @@ -105,6 +108,10 @@
21 tmp.compar = compar;
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;
31 @@ -120,5 +127,6 @@
32 #undef _SORT_R_WINDOWS
33 #undef _SORT_R_LINUX
34 #undef _SORT_R_BSD
35 +#undef _SORT_R_ILLUMOS
37 #endif /* SORT_R_H_ */