diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2024-02-09 21:04:47 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-02-10 10:04:05 +0200 |
commit | 3b3e4315aa5da662201437cfede7371dcebb9f97 (patch) | |
tree | 94fbf1fd9c3b2959e5817b727b03a86d53127b79 /media-libs/nvidia-vaapi-driver/files | |
parent | virtual/httpd-php: Bump to 8.3 (diff) | |
download | gentoo-3b3e4315aa5da662201437cfede7371dcebb9f97.tar.gz gentoo-3b3e4315aa5da662201437cfede7371dcebb9f97.tar.bz2 gentoo-3b3e4315aa5da662201437cfede7371dcebb9f97.zip |
media-libs/nvidia-vaapi-driver: fix building with musl
Closes: https://bugs.gentoo.org/924146
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35247
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs/nvidia-vaapi-driver/files')
-rw-r--r-- | media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch new file mode 100644 index 000000000000..aa03fa825539 --- /dev/null +++ b/media-libs/nvidia-vaapi-driver/files/nvidia-vaapi-driver-0.0.11_musl-support.patch @@ -0,0 +1,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 + |