commit:     baf27f8e1d2ffc31fbcf2e6d1d072a1a1880474c
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  5 00:23:12 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jul  5 00:23:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baf27f8e

media-libs/libjsw: Fix build for musl

Closes: https://bugs.gentoo.org/713792
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/libjsw/files/libjsw-1.5.8-musl.patch | 11 +++++++++++
 media-libs/libjsw/libjsw-1.5.8.ebuild           |  1 +
 2 files changed, 12 insertions(+)

diff --git a/media-libs/libjsw/files/libjsw-1.5.8-musl.patch 
b/media-libs/libjsw/files/libjsw-1.5.8-musl.patch
new file mode 100644
index 00000000000..9a6f116e830
--- /dev/null
+++ b/media-libs/libjsw/files/libjsw-1.5.8-musl.patch
@@ -0,0 +1,11 @@
+--- a/include/os.h
++++ b/include/os.h
+@@ -254,7 +254,7 @@
+ typedef int                     int32_t;
+ typedef unsigned int            u_int32_t;
+ 
+-# if __GNUC__ >= 2
++# if __GLIBC__ >= 2
+ 
+ #  ifndef int64_t
+ typedef long long               int64_t;

diff --git a/media-libs/libjsw/libjsw-1.5.8.ebuild 
b/media-libs/libjsw/libjsw-1.5.8.ebuild
index 35a137e4422..92ca06fcddb 100644
--- a/media-libs/libjsw/libjsw-1.5.8.ebuild
+++ b/media-libs/libjsw/libjsw-1.5.8.ebuild
@@ -15,6 +15,7 @@ KEYWORDS="amd64 ppc ~ppc64 x86"
 
 PATCHES=(
        "${FILESDIR}"/${P}-build.patch # 724664
+       "${FILESDIR}"/${P}-musl.patch # 713792
 )
 
 src_prepare() {

Reply via email to