media-sound/apulse: fix build with musl 1.2.5

Closes: https://bugs.gentoo.org/927954
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/36086
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Alexey Sokolov
2024-06-07 16:15:06 +03:00
committed by Joonas Niilola
parent 4021c7a0d1
commit 555f912005
2 changed files with 14 additions and 0 deletions
@@ -26,6 +26,7 @@ PATCHES=(
"${FILESDIR}/sdk.patch"
"${FILESDIR}/check-key-before-remove.patch"
"${FILESDIR}/man.patch"
"${FILESDIR}/apulse-0.1.13-libgen.patch"
)
src_prepare() {
@@ -0,0 +1,13 @@
Fix build with musl 1.2.5
--- a/src/apulse-misc.c
+++ b/src/apulse-misc.c
@@ -22,6 +22,8 @@
* SOFTWARE.
*/
+#include <libgen.h>
+
#include "apulse.h"
#include "trace.h"
#include "util.h"