From https://github.com/elFarto/nvidia-vaapi-driver/pull/273 From: "Azamat H. Hackimov" Date: Fri, 9 Feb 2024 20:54:17 +0300 Subject: [PATCH] Fix building with musl qsort_r invocations uses `__compar_d_fn_t` typedef that defined only in glibc. Added missing typedef to fix compilation on musl systems. See: https://bugs.gentoo.org/924146 Signed-off-by: Azamat H. Hackimov --- a/src/hevc.c +++ b/src/hevc.c @@ -3,6 +3,10 @@ #include "vabackend.h" #include +#if !defined(__GLIBC__) +typedef int (*__compar_d_fn_t) (const void *, const void *, void *); +#endif + static const uint8_t ff_hevc_diag_scan4x4_x[16] = { 0, 0, 1, 0, 1, 2, 0, 1, -- 2.43.0