blob: aa03fa825539a6f6ce3d001da4cd4b3f6e677bbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From https://github.com/elFarto/nvidia-vaapi-driver/pull/273
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
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 <azamat.hackimov@gmail.com>
--- a/src/hevc.c
+++ b/src/hevc.c
@@ -3,6 +3,10 @@
#include "vabackend.h"
#include <stdlib.h>
+#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
|