media-libs/libtgvoip: fix build on musl
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 12 Feb 2020 09:19:24 +0000 (01:19 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 12 Feb 2020 09:20:28 +0000 (01:20 -0800)
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
media-libs/libtgvoip/files/musl.patch [new file with mode: 0644]
media-libs/libtgvoip/libtgvoip-2.4.4_p20200123.ebuild

diff --git a/media-libs/libtgvoip/files/musl.patch b/media-libs/libtgvoip/files/musl.patch
new file mode 100644 (file)
index 0000000..ba6bb04
--- /dev/null
@@ -0,0 +1,10 @@
+--- libtgvoip/os/linux/AudioPulse.cpp  2020-01-21 12:16:27.000000000 +0000
++++ libtgvoip/os/linux/AudioPulse.cpp  2020-01-22 17:44:42.185530350 +0000
+@@ -6,6 +6,7 @@
+ #include "AudioPulse.h"
+ #include <dlfcn.h>
++#include <libgen.h>
+ #include "../../logging.h"
+ #define DECLARE_DL_FUNCTION(name) typeof(name)* AudioPulse::_import_##name=NULL
index 4556d115fcc7d5b9738aa7b3bd89f8bca7bd8d62..7962785e6db00fbe849a73b1c4df6d973069d047 100644 (file)
@@ -30,7 +30,10 @@ REQUIRED_USE="|| ( alsa pulseaudio )"
 
 S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
 
-PATCHES=( "${FILESDIR}/2.4.4-pulseaudio.patch" )
+PATCHES=(
+       "${FILESDIR}/2.4.4-pulseaudio.patch"
+       "${FILESDIR}/musl.patch"
+)
 
 src_prepare() {
        default