diff options
author | Theo Anderson <telans@posteo.de> | 2021-01-19 19:14:09 +1300 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-06-21 13:15:56 +0200 |
commit | abf184c08f844da0ddea740490a681ac073b0301 (patch) | |
tree | 78259f0dbb3598e64846a0c2ed148b7da3e4e7bf /media-sound/pulseaudio | |
parent | media-sound/pulseaudio: minor fixes (diff) | |
download | gentoo-abf184c08f844da0ddea740490a681ac073b0301.tar.gz gentoo-abf184c08f844da0ddea740490a681ac073b0301.tar.bz2 gentoo-abf184c08f844da0ddea740490a681ac073b0301.zip |
media-sound/pulseaudio: fix build with clang
Closes: https://bugs.gentoo.org/740498
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/19122
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-sound/pulseaudio')
-rw-r--r-- | media-sound/pulseaudio/files/pulseaudio-13.0-clang.patch | 25 | ||||
-rw-r--r-- | media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/media-sound/pulseaudio/files/pulseaudio-13.0-clang.patch b/media-sound/pulseaudio/files/pulseaudio-13.0-clang.patch new file mode 100644 index 000000000000..d7b81de0313e --- /dev/null +++ b/media-sound/pulseaudio/files/pulseaudio-13.0-clang.patch @@ -0,0 +1,25 @@ +From e4450d8b586103ec1414e2d6245ff34a9096d97a Mon Sep 17 00:00:00 2001 +From: Peter Levine <plevine457@gmail.com> +Date: Thu, 26 Sep 2019 07:24:40 +0000 +Subject: [PATCH] atomic: Explicitly cast void* to unsigned long + +--- + src/pulsecore/atomic.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h +index a82ca83c5..e5c140109 100644 +--- a/src/pulsecore/atomic.h ++++ b/src/pulsecore/atomic.h +@@ -117,7 +117,7 @@ static inline void* pa_atomic_ptr_load(const pa_atomic_ptr_t *a) { + } + + static inline void pa_atomic_ptr_store(pa_atomic_ptr_t *a, void* p) { +- __atomic_store_n(&a->value, p, __ATOMIC_SEQ_CST); ++ __atomic_store_n(&a->value, (unsigned long) p, __ATOMIC_SEQ_CST); + } + + #else +-- +GitLab + diff --git a/media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild b/media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild index 0b4d1139a5b8..0b9a7d18570d 100644 --- a/media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild +++ b/media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild @@ -121,6 +121,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/pulseaudio-11.1-disable-flat-volumes.patch # bug 627894 + "${FILESDIR}"/${P}-clang.patch ) pkg_pretend() { |