summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-07-05 02:23:12 +0200
committerDavid Seifert <soap@gentoo.org>2020-07-05 02:23:12 +0200
commitbaf27f8e1d2ffc31fbcf2e6d1d072a1a1880474c (patch)
tree72a7a4b8785d7c2dafbdb2fb938a64a76ff8fb0f /media-libs
parentmedia-libs/libjsw: Fix build system (diff)
downloadgentoo-baf27f8e1d2ffc31fbcf2e6d1d072a1a1880474c.tar.gz
gentoo-baf27f8e1d2ffc31fbcf2e6d1d072a1a1880474c.tar.bz2
gentoo-baf27f8e1d2ffc31fbcf2e6d1d072a1a1880474c.zip
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@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libjsw/files/libjsw-1.5.8-musl.patch11
-rw-r--r--media-libs/libjsw/libjsw-1.5.8.ebuild1
2 files changed, 12 insertions, 0 deletions
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 000000000000..9a6f116e8302
--- /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 35a137e44220..92ca06fcddb4 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() {